Merge in prototype Scheduler

A very simple scheduler implementation.