Put websocket handling behind channels

So there can be concurrent access to sending websocket information.
Initially tried a rwMutex but this proved too complicated for minor gain.