Fix infinite redirect loop.

Handle the edge case where gateway-ing is enabled, the upstream CAS
session has expired but the client still sends a MOD_AUTH_CAS cookie.

If we redirect to the CAS server with a query string of
"service=request_uri&gateway=true", we'd create an infinite loop.

See https://issues.jasig.org/browse/MAS-52
Remove invalid CAS cache files