Added createMigration functionality and tests. Added up/down support.