Overhaul the migrate-manifest command with support for source/destination config and tests

fixes #704