Fix #851. Overhaul the migrate-manifest command with support for source/destination config and tests.