Fix DST bug in LegacyTimePeriod::ParseTimeSpec().
Fix parsing <MONTH> <DAY> time defs (e.g. "december 25").

Fixes #4040
Fix uninitialized variables.
Implement -d (daemonize) and -e (errorlog).