Fix the issue: AppRegistryNotReady exception while syncdb with Django 1.7, according to
this suggestion in django document:
https://docs.djangoproject.com/en/1.7/ref/applications/#troubleshooting
fix login issue with django 1.7: check_for_test_cookie is deprecated and removed in django 1.7.
Merge pull request #221 from upwell/mybugfix

Fix two compatibility issues with django 1.7