Prepare bandwidth scheduler code
Make the scheduler timeout every 1.5s.
Allow the scheduler to have a start time that's after the end time. Closes #980.
Turn off the scheduler when the user manually changes the rate limits mode.