Move websocket code to own repo