Ring middleware for CAS single sign out