workflows: holdingpen details page improvements

* Adds 2 new stages for workflow objects error and waiting.

* Better display of workflow definition.

* Display of completed tasks.
81:1: E303 too many blank lines (3)
90:5: E301 expected 1 blank line, found 0
190:5: E301 expected 1 blank line, found 0