Initial scheduler implementation 

Currently just prototypes the backgrounding of the restart functionality using the scheduler