Move migration code to its own package.

* Moved over the data migrator
* Moved over the old leveldbshard code and updated datastore/shard so old code could reference everything.