workflows: holdingpen details page improvements

* Adds 2 new stages for workflow objects error and waiting.

* Better display of workflow definition.

* Display of completed tasks.
Since we are editing this part, shall we rename `hbwobject` to something more readable like `bwobject_history`?