Changed how worker threads are dealt with, keepalive no longer blocks server, tests run much faster, and resource locking is now completely thread safe