MOTECH-620: Migrate Schedule Tracking to MDS

This commit moves the persistence source from CouchDB
to Motech Data Services for the Schedule tracking module.
Some refactoring was necessary to make it possible.

Change-Id: If7957d1f098a25c4d951be4ba12fd20d7046750d