Add migration testing

How about opt-in migrations in test / server commands?
This will enable travis to run migrations to catch errors like the ones you fixed in this branch