Fixed scope issue with model loading function and added more endpoints to access tokens controller.