Replace mixins with Endpoint, add metaclass directive to APIResource to register Endpoints to their classes