Made WebSocket an interface; added example

Also added a new function, websocket.NewWithGlobal, for custom implementations
of the WebSocket interface (e.g. SockJS)