Added maintenance mode via middleware

In order to enable this, the `MAINTENANCE_MODE` setting needs to be set to
`True`. The sample configuration files include more information on how the
middleware works.

Fixes #39.
Renamed parameter for clearer semantics
Avoid caching retrieved pages
Simplified variable naming
Provide missing parameter
Use is_safe_url() instead of home-grown check

Related to 715e6af.