Use the custom user model label instead of the user model class to define ForeignKey relationships

This solves some issues in Celery where there were Import errors - most
probably due to circular dependencies.