Issue #2223063: Only call task confirm form when required.

We add an AJAX callback to simply replace the task list when a button
is clicked. Currently, this does not refresh the queue block, nor set
the shorter timeout on polling the queue.
Also refresh the queue block when a button is clicked.