This adds the missing event callbacks to express dependencies on included tasks and taskwait with depend clause.
I had this patch and the mutexinoutset patch on the same branch (marked as dependent patch). The output for task dependencies changed in the mutexinoutset patch. I wrote the filecheck patterns to match the new output.
I restarted the test and hope that the rebuild pulls current master as the base.