Added a FreezeThread Class

Added FreezeThread class to help with multi tasking. With Gregs help we
got it ALMOST working correctly, there are still some issues with
either a thread or bug, its really hard to tell. I also deleted a bunch
of unused code and cleaned up some “bad form” code as well