Wait to run the body of ensure_completely_loaded until the app registry is ready
Backport of get_permission_codename for Django versions<1.7
Specify that admin model forms want all fields
Use _meta.local_fields to find the template_key field

The previous method, get_field_by_name depends on the app registry which
is not ready at this point in time yet.

Thanks to Marc Egli for the idea.
Use _meta.model_name and fall back to _meta.module_name
ModelAdmin.queryset has been renamed to ModelAdmin.get_queryset
django.apps only exists in Django 1.7 and up
Start the uglyness. Django < 1.7 cannot handle fields = '__all__'
Use get_model_name inside get_permission_codename instead of crashing
Unfunnily, Django 1.7 requires django-mptt-dev
Move Page initialization code into the models file
Remove two unused imports
Fix a broken test
Update dependencies where appropriate
Move models into the models module
Now, the example CMS bases live in testapp
Deactivate some code which tests for name clashes with Django 1.7
Remove leftover jquery 1.9.1
Fix two small flake8 violations
Merge branch 'mk/django17' into next after verifying that the example also works fine

* mk/django17:
  Fix two small flake8 violations
  Deactivate some code which tests for name clashes with Django 1.7
  Now, the example CMS bases live in testapp
  Move models into the models module
  Update dependencies where appropriate
  Fix a broken test
  Remove two unused imports
  Move Page initialization code into the models file
  Unfunnily, Django 1.7 requires django-mptt-dev
  Use get_model_name inside get_permission_codename instead of crashing
  Start the uglyness. Django < 1.7 cannot handle fields = '__all__'
  django.apps only exists in Django 1.7 and up
  ModelAdmin.queryset has been renamed to ModelAdmin.get_queryset
  Use _meta.model_name and fall back to _meta.module_name
  Use _meta.local_fields to find the template_key field
  Specify that admin model forms want all fields
  Backport of get_permission_codename for Django versions<1.7
  Wait to run the body of ensure_completely_loaded until the app registry is ready