Rack Middleware for setting REMOTE_ADDR from other headers