Add a handler that makes writing websocket clients much easier