Adding websocket client code. Doesn't yet use the twisted server