Added rack middleware for monitoring all HTTP requests