Proxy ticket fixes

I've adapted backends from the KTHse/django-cas2 fork for proxy ticketing.