Migrations that work (in a nice way)

This is untested when rolling out to more that one server, so I suspect that it will run migrations on each one, rather than just the first.