Task refactor

General cleanup of the task codebase

- fixes "all" periodic tasks
- far safer method of 'popping' from delayed queues and schedule management 
- adds methods to inspect worker status