Add PHPUnit to require-dev.
Refactor sorting of migration list into separate function in preparation for allowing a manifest file to override sort order.
Auto-upgrade to migrations.json manifest format when using CLI tool. Add tests.