code cleanup and refactoring.
validation tests ok
wait_for_task fixed for crossvalidation
Merge branch 'development' of github.com:opentox/opentox-client into development