Structuring and commenting of websocket handling.
Adding a test for default getsocket, using echo.websockets.org.