fix for several django 1.7 issues

This fixes some deprecation warnings as well as a bug with the test suite runner when reusing the database.