Fixed the igrations to be able to run with a custom user model

This uses a pattern copied from django-reversion:

https://github.com/etianen/django-reversion/blob/master/src/reversion/migrations/0001_initial.py

This addresses #592