clone of django-registration1.0 from https://bitbucket.org/ubernostrum/django-registration