Refactor EndpointBase internals and add CORS support