Add support for setting maintenance mode

* If the resource specifies a maintenance page, turn on check for maintenance mode
* Maintenance mode is specified by the presence of a file.
* Maintaince mode file can be specified or defaults to in_maintenance_mode in the parent directory of the root directory