Add Django 1.5 Custom User model support

Provides support for Django 1.5's custom User models while giving a
fallback for earlier versions of Django