workflows: new stage for halted

* Adds 'WAITING' stage for halted workflows with
  no action added to them.
For Python 3 compatibility let's use `items()` instead of `iteritems()`.