workflows: holdingpen details page improvements

* Adds 2 new stages for workflow objects error and waiting.

* Better display of workflow definition.

* Display of completed tasks.
Thinking about it, can we imagine that we can get the last task from `task_history[-1]` (when we have `task_history`).