proper fix for #114 including all the waits() and unit tests
Merge branch 'devel' of github.com-oleweidner:radical-cybertools/radical.pilot into devel