Add compatibility with 1.5 configurable user model

Made user `ForeignKey` compatible with Django 1.5. Previous versions still supported.