parse websocket header

1. get header info from header of handshake
2. add unit test for parsing header