Make compatible with Django 1.7 migrations

Make the app Django 1.7 compatible and add support for the new migration system introduced in Django 1.7.

Builds on top of @anhtran's substantial initial work.