Fixed downtime support

Retains the old flexible downtime support as the new "flexdowntime" command and switches the "downtime" command over to fixed downtime windows.
Probably want to make this `static` if it's not supposed to be exported.