Move migration from starting automatically to an API endpoint.
Update the migrator to mark shards as migrated

Will write a file into the shard directory. If a migration is called again, it will skip any shard that has a migration marker in the directory.