Fix circular import errors in cms.compat

Importing from django.contrib.auth.admin, as well as some imports using
importlib resulted in circular imports in some contexts (wsgi) when done
at module level Fixed by hiding the imports in function calls.