Require django 1.4+ and fix deprecation warnings for django.conf.urls.defaults