Rack Middleware for filtering by user agent