[#409] Replaced all direct references of the User model

All references to the User model have been replaced with django.contrib.auth.get_user_model() or settings.AUTH_USER_MODEL