Fix logout on password change in Django 1.7+

Fixes #143.

For more information:
https://docs.djangoproject.com/en/1.7/topics/auth/default/#session-invalidation-on-password-change