django 1.7 compatibility

 * deprecations : get_query_set, model.module_name
 * app loading : must use some late imports and introspection
 * settings : default middlewares changed
 * metaclasses : copy updated method from six for django 1.5 to 1.7 compatibility
 * Tests for other versions still pass.