Moving all websocket communications out of the read thread callbacks (now async). Fixing threading issues with prontserve.