Feature/django17 migrations compatibility

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.