Moved all of the schedule related stuff into a plugin

Change-Id: I5bf647b7b5d7a85c279062188f4639359fca2a6e