Maintenance fix

Adds initial support for application wide maintenance

#### Know issues
* Redirects all users to the admin page (including admins).