workflows: holdingpen details page improvements

* Adds 2 new stages for workflow objects error and waiting.

* Better display of workflow definition.

* Display of completed tasks.
I would suggest one liner to avoid problems in future if somebody refactors the code:
```python
workflow_definition = get_workflow_info(extracted_data['workflow_func'])
```