Add support for Django 1.5 Custom User models

Provides backwards and forwards compatibility