a little more hacking on reading sockets and parsing initial websocket request header.