add a coarse rate-limiting feature to migrations
remove errant imports.
Merge pull request #326 from gdusbabek/migrate_rate_limit

add a coarse rate-limiting feature to migrations