Support swapping out user models in django 1.5.
Add support for TemplateView in Django 1.5.

The old django.views.generic.simple.direct_to_template seems not to
exist in Django 1.5, so if the import fails, try to import TemplateView
instead, and if that works then use it.