Django 1.7: ensure that the app registry is ready before tests are loaded

The remaining test failures are due to some of the oddities in model
mocking, which can be solved by overhauling the way we do tests and
mocks.