Enable custom user model support with Django 1.5+

Authors: https://bitbucket.org/romanalexander, https://bitbucket.org/fuhrysteve
URL: https://bitbucket.org/codekoala/django-tracking/pull-request/5/fixed-django-15-support-retains-backwards/