Refactoring of deployment tasks handling

Needs to be tested thoroughly.
This fixes incorrect handling of failed 'deploy' if 'check_before_deployment' passed and remove unneeded and confusing cluster.deployTask method