Tons of refactoring. Got rid of threads and classloaders completely.