Middleware that redirects users to a site's primary domain, based on django.contrib.sites