Error handling and maintenance mode fixes

- changes the maintenance mode page's status code to 503
- makes cluster workers get the current maintenance mode from the cluster master before stating the gateway (we were having workers error out and die going into maintenance mode, then coming back up in non-maintenance mode)
- fixes all the error handling