support overnight TimeOfDay rules

When the user sets up a TimeOfDay rule that crosses midnight, we need to add a day to the end-time so that NSDate comparisons work correctly during rule match. The hour & minute components of that end time are not altered and the DayOfWeek checks will still apply.
Merge pull request #358 from kfix/patch-1

support overnight TimeOfDay rules