Add scheduler component.

Haven't really tested this, but this is for @kayousterhout.