refactor websocket and add some test cases
add http version checking and test case for it
Merge pull request #66 from onlychoice/update_ws

refactor websocket and add some test cases