Rack middleware for serving up RPC endpoints.