Bug 1024007 — Add a 503 error handler.

getMiddleware is needed to be able to configure the logError callback but we can rename it handle503.