Implementation of mod_auth_pubtkt as Django middleware.