A round of code cleaning for the primary scheduler code.

Comments have been updated, a minor amount of support type restructing has happened, methods have been reordered, and some duplicate code has been purged. Nothing exciting to see, but a little bit of progress towards turning sched.rs into a reasonable file not the festering wound on the codebase it currently is.