Synchronize schedule, cleanup

The schedule is now synchronized, pretty much. It's still pretty messy.
I also tried to clean up some of the authentication stuff a little but
it's also a mess.