Issue #1790920 by alexpott, japicoder, LinL, heyrocker: Move cron_last(), node_cron_last() and common_test_cron() to state system.