Switched webserver to gevent; switched to using threads; added more robust error handling; added some temp files