Reroute Socket.io events as web requests.