Rack middleware for limiting requests based on an parameter