Clean methods in websocket interface.

* Mark override methods.
* Pass references to std::shared_ptr whenever possible.