[PATCH 7/7] mstask: Move trigger management to the ITask implementation.