Some basic sketching of functionality and data structures in scheduler.c.  Doesn't build yet, but we're working on it.
For jake.