Support `require`ing an arbitrary module before loading migrations.

This allows loading any type of module, as long as it is registered in
that module.