Update and build out initial base controller for api handling and error control