refactors and tests cron phase A functionality; die() in block...php to prevent untested cron runs against webservice