Fixed #18998 - Prevented session crash when auth backend removed

Removing a backend configured in AUTHENTICATION_BACKENDS should not
raise an exception for existing sessions, but should make already
logged-in users disconnect.
Thanks Bradley Ayers for the report.
Slightly reworked imports in contrib.auth.__init__
Added stripping of whitespace for SlugField and URLField
Merge pull request #1113 from denibertovic/master

Fixed #18761 -- Added whitespace stripping to URLField and SlugField.
Fixed #19436 -- Don't log warnings in ensure_csrf_cookie.
Moved IgnorePendingDeprecationWarningsMixin in django.test.utils.

This mixin is useful whenever deprecating a large part of Django.
Fixed #20444 -- Cookie-based sessions does not include a remote code execution-warning
Fixed #13285: populate_xheaders breaks caching
Fixed #20142 -- Added error handling for fixture setup

TestCase._fixture_setup disables transactions so,
in case of an error, cleanup is needed to re-enable
transactions, otherwise following TransactionTestCase
would fail.
Merge pull request #1122 from ambv/issue13285

Fixed #13285: populate_xheaders breaks caching
Fixed #20430 - Enable iterable of iterables for model choices

Allows for any iterable, not just lists or tuples, to be used as
the inner item for a list of choices in a model.
Fixed #20446 -- Documentation for SmallIntegerField does not clarify 'small'
Fixed #20335 - Documented the {% language %} template tag.

Thanks bmispelon for the suggestion and djangsters for the patch.
Merge pull request #1128 from erikr/improve-smallint-docs

Fixed #20446 -- Documentation for SmallIntegerField does not clarify 'small'
Merge branch 'allow-any-iterable-for-choices'
Fix NoneType error when fetching a stale ContentType with get_for_id

When a stale ContentType is fetched, the _add_to_cache() function
didn't detect that `model_class()` returns `None` (which it does by
design). However, the `app_label` + `model` fields can be used instead
to as local cache key. Third party apps can detect stale models by
checking whether `model_class()` returns `None`.

Ticket: https://code.djangoproject.com/ticket/20442
Fixed #14894 -- Ensure that activating a translation doesn't run into threading issues.

Thanks to maxbublis for the report and sergeykolosov for the patch.
Fixed #15201: Marked CACHE_MIDDLEWARE_ANONYMOUS_ONLY as deprecated
Merge branch 'master' of github.com:django/django
Merge pull request #1127 from filias/20142

Fixed #20142 -- Added error handling for fixture setup