Nearly finished new threading system, not sure if going to be
implemented. Has minor issues with exiting cleanly and ending all
threads.