Added Rack middleware for rate limiting