Fixed #16087 -- Added ResolverMatch instance to test client response.

Thanks mrmachine for the suggestion.
Fixed #6327 -- Added has_module_permission method to BaseModelAdmin

Thanks chrj for the suggestion.
Fixed #7599 -- Added get_user_permissions to ModelBackend.

Thanks to @gdub for the report and intial patch and
@charettes and @timgraham for the review.
Fixed #22477 -- Removed contrib middleware from the global settings defaults.

Also added a compatibility check for changed middleware defaults.

Forwardport of d94de802d3 from stable/1.7.x
Fixed #22771 -- Fixed test.Client.logout when using custom auth backend.
Added django.utils.six.buffer_types

and used it in the Oracle SchemaEditor. Refs #22715.
Fixed #22816 -- Corrected Oracle feature flag and fixed introspection test
Fixed #22440 -- Updated ConditionalGetMiddleware to comply with RFC 2616.