fix import loops when using custom users.

The django docs states that AUTH_USER_MODEL should be used in database relations:
>When you define a foreign key or many-to-many relations to the User model, you should specify the custom model using the AUTH_USER_MODEL setting.