add remaining migrations

this seems to be the only place you can stick shared code in a `migrations` folder without making either python or south mad at you.