Add the ready state constants to the SockJS prototype

Adding the ready state constants to the prototype makes the api a bit closer to the WebSocket api specs.
Having them on the prototype also allows other applications / libraries to avoid an explicit SockJS dependency.