basic server and websocket backend groundwork