Updated to Django 1.5 user model. TODO: make it backwards compatible