Add Rack Middleware to handle 'top-level' exceptions

The middleware is included in the Railtie initializer at the top of the middleware stack to hopefully catch anything that may occur.