[*] on_task_result() -> on_action_complete()
[*] WorkflowHandler -> WorkflowController with continue_workflow() method
[*] Introduced task_handler module responsible for running tasks,
handling action results and maintaining task and action execution
states. In other words, it contains all logic for task processing
which is independent of workflow type.
[*] Introduced workflow_handler module responsible for managing
workflow execution state.
[*] Engine now plays the role of orchestrator for workflow controller,
task handler and workflow handler which are completely independent
of each other. So engine glues everything together.
[*] All remote calls made from within a transaction are implemented
via scheduler as deferred calls with zero delay to avoid race
conditions.
[*] Fixed unit tests, tests for policies and 'with-items are skipped
for now since this functionality needs to be repaired on top of
the new architecture.
TODO:
[ ] Fix policies
[ ] Fix 'with-items'
[ ] Refactor 'ad-hoc' actions
[ ] Make more clear structure of task handler
Change-Id: I0470a113c335ce141b55fe84b922f83fde23e644