Implement ControllerBase, Session, Params, and Router as Ruby classes.