All configuration parameters that are time periods can now have an
optional suffix such as "hours" appended. Store them as a struct timeval, not as an int, so that the bulk of the code doesn't have to take the unit into account. Use "struct timeval" instead of a number of milliseconds or seconds in several places. This fixes a number of potential and actual overflows. Added utility functions for struct timeval.