Import existing scheduler code.

Original code had been support for https://www.thetudu.com. Extracted to a gem
for others who might require a scheduler with simple timings but capable of
running arbitrary code.