Update websocket support to match current RFC.
Make connect, read and write calls all asynchronous.
Add more APIs, similar to JavaScript APIs, but more Curl Language
style, and some additional useful APIs.