Added scheduling and a ton of bug fixes

Now you can schedule lights turning on and off etc at specific times.
See at the bottom for some examples