MOTECH-978 Migrate mTraining to MDS

This refactors mtraining and migrates it to MDS

Change-Id: I8e68a8b245bc691840c12f6bfb2acb8d4ab6f386
Merge "MOTECH-978 Migrate mTraining to MDS" into 0.24.X