Move the read() method into the parent

As this is an implementation based on the websocket rfc, it is
independent from Socket.io implementation, so it can be factorized into
the AbstractSocketIO object
Use socket_stream_client rather than fsockopen