Django 1.5 custom user model support

Add support for Django 1.5 custom user model.