fix scheduled reports when there is no minute set

mid-sized refactor + tests included

http://manage.dimagi.com/default.asp?133813
I don't understand this. Why are minutes 6-29 and 36-59 not allowed? Is this to make sure the task gets executed within 5 minutes of when it was scheduled and otherwise fail?