Run server in a thread

Preparing for merger of singleplayer/mutliplayer