Start server as thread, basic testing code for websockets.