Multiple fixes for work queue:
* "cancel tasks" works correctly and no longer segfaults
* foreman nodes use the correct value for their max_tasks (current workers vs total workers ever connected)
* worker no longer disconnects after a very long running task
* work queue master logs every message it sends in the debug log when D_WQ is enabled