[PATCH 2/8] mstask: Switch to using ITaskDefinition instead of IRegisteredTask.