A basic wrapper around HTML5 WebSocket