Add migration

This patch adds the ability to migrate data between two spaces with compatible schemas.  At this moment it's not fault tolerant and not very well-tested, so please do not use it in production just yet.