workflows: holdingpen details page improvements

* Adds 2 new stages for workflow objects error and waiting.

* Better display of workflow definition.

* Display of completed tasks.
Maybe I'm wrong, but isn't it the same like:
```python
history_objects = sum(history_objects.values())
```