Django 1.7+ compatibility + wrapped migration commands

Guyz, please review this PR.  I've tested it with Django 1.4 and 1.7 - seems to be ok.
I don't know how to change version to 0.4.0, so please do it yourself.