Support swappable user models.

Refs #143.
Merge branch 'django-1.5'