Merge pull request #3 from cowboy129/master

add upgrade client
Cleanup
Support per-message deflate in client code