Added methods for getting the current user and managing the session and request.