Move clients to SharedWorker

If we move the clients to a SharedWorker, possibly using https://github.com/GoogleChromeLabs/comlink then we can support multi-tab / multi-window and share the connection state etc.