Add ready states to WebSocket instances.

Increase compliance with [the WebSocket API](http://www.w3.org/TR/2012/CR-websockets-20120920/#the-websocket-interface).

This is important to me because I'm writing code that will work on both Node and in the browser.