work on scheduler, added scheduledFor key on jobitem, refactored job.model
fixed bugs that broke tests, ready for scheduler work