Create test for instance state properties.
Add ready states to WebSocket instances.

Increase compliance with the WebSocket API:

http://www.w3.org/TR/2012/CR-websockets-20120920/#the-websocket-
interface
Merge pull request #170 from BallBearing/states

Add ready states to WebSocket instances.