Experimentally start the ws server in a thread in main (core dumps on exit though)