Start work to make scheduler work on queues

instead of a flat view of jobs with priorities