refs #4 split protocol logic from Main
refs #4 split WebSocketServer from Main.hx