workflows: holdingpen details page improvements

* Adds 2 new stages for workflow objects error and waiting.

* Better display of workflow definition.

* Display of completed tasks.
1: D100 Docstring missing
20: D400 First line should end with '.', not 'y'
20: D200 One-line docstring should not occupy 3 lines