Implement onmessage callback.

Rename WebSocket class to WebSocketServer