Move sendMessage into Plugged
Move sendMessage into Plugged

Until now sendMessage was defined in the prototype of WebSocket, this
could cause some major inconveniences in the future since WebSocket is
not part of Plugged itself. This also enables for extensive error handling
as well as graceful recovery of sending failed chat messages.

SooYou/plugged,welovekpop/plugged