Add simple Maintenance Mode WSGI middleware.

Additionally, this commit moves the auth middware to a common middleware
module.

Change-Id: Ieddc8ebca25b99483232cb4b0203871454789ad4