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