Add Django 1.7 migrations.
Add MIDDLEWARE_CLASSES setting.
merge patched into master