Fixes bugs with stats persisting incorrectly.
Seperated runtime heartbeat and delay signal from Scheduler interface
Created an OnlyOnceJob to add additional locking mechanisms.
Added more tests

USERGRID-1495
Merge pull request #113 from apigee/USERGRID-1495

Fixes bugs with stats persisting incorrectly.