Use work_queue_submit_internal at foreman side.
taskid increment after assignment.
Merge branch 'wq_foreman_taskid'

Fix bug where foreman was not using work_queue_wait_internal.
Send resources updates at least five seconds apart.