add support for django 1.7 with migrations

Based on issues #85 and #91