Smarter analysis of pending migrations

Rather than just doing a diff on the db/migrate directory, use rake to
ask both local and remote databases what their migration status is
(rake db:migrate:status). Then compare the versions to work out what
the status of each migration is (combining local and remote status).