Fixed error in schema
Added databases to gitignore
Added handling of timer form POST
Added mode switch endpoint
State object now in template. Switch mode based on this.
Endpoint for opening and closing
User interface now knows if open or closed
Resolved conflict