#409 - added before_task_start and after_task_finished hooks
#409 - first parameter is task object
Merge branch 'issue/409_2'