Make AuthMixin use the new template mixins, and cleanup code