Rollback workflow definition changes, adjust qatests
Rollback logic changes from 8123b8, code cleanup in workflow api

Functionality should now be restored to the old state, ui uses a
seperate api method to get a nice structure - should be merged
with the remaining workflow code in next refactoring step.
Change UI class for changed workflow api