move all thread definitions into a thread_controller.rs file

to make it easier to see all the threads that exist