Ruby Rack middleware for Object stats