Add initial migration support for custom user models

Copied from https://github.com/romanalexander/django-notifications/commit/8f061ecbcd27f4533945961e6a5eba4847d9885e