Adds token class and getInstance() methods to request and session classes.