Moved the webserver to its own thread, hopefully this will stop it locking up