Removed social-auth dependencies.
Refactored some code to get it work with Django 1.6