introduced helper functions about workflow's status
- cleaned / refactored some functions
before removing ASM
ASM
Merge branch 'master' of https://github.com/attila-s/MentalRayPortlet.git