#16074: add BaseContextMixin to generic views that define get_context_data

This pull request tracks a potential fix for https://code.djangoproject.com/ticket/16074

It's probably not ready for commit, but I'm opening up this pull request to facilitate feedback on the code at the sprint today.