Refactored the migration signals to use app configs.

This creates one backwards incompatibility: the sender argument of
pre/post_syncdb changes outright. I don't see how we can provide a
deprecation path.