Rack middleware

Some rack middleware for instrumenting request times and exception counts.