Added graft websocket. Extracted general client and server.