Adding a WebSocket client connection

A variation on the Tcp connection with added websocket handshake and encode/decode (taken from https://github.com/lemmingzshadow/php-websocket/blob/master/client/lib/class.websocket_client.php).

Used by giving a ws or wss-url to Client::connect.