RESTBase/service migration

In order to be able to eventually remove the RESTbase service, all services that rely on it need to be migrated so they no longer require RESTbase. This means that all functionality that the services relies on RESTbase for has to be covered elsewhere. Generally, "elsewhere" means in the service itself (possibly using a shared library), or in a gateway or proxy that sits in front of the service (compare REST Gateway).

Migration Quick-Guide

 * rate limiting: RESTbase provides basic per-IP, per-instance rate limiting. Limits can be configured for each endpoint. If needed, functionality can be covered either in the gateway, or in service-runner (if the service is implemented using service-runner).
 * security headers: RESTbase applies generic security headers (CSP and such) based on the responses content-type. If needed, functionality can be covered either in the gateway, or directly in the service itself.
 * enrichment/hydration: RESTbase has the ability to enrich the response body with information retrieved from other services. If this is needed, it has to be re-implemented in the service itself (possibly using the middleware pattern). The service proxy should be used when communitcating with other services.
 * title normalization: RESTbase can check and normalize page titles by making a query to the MediaWiki action API, before forwarding a request to a service. If this is needed, it has to be re-implemented in the service itself (typically using the library for accessing the MediaWiki API provided by the service template). However, if the service will be using the title to communicate to a MediaWiki API, this may not be necessary - the target API may issue normalization redirects (from REST endpoints) or indicate title normalization in the response body (from action API modules). The service can rely on the information from these responses to perform title normalization.
 * cache control: RESTbase can be used to add cache control headers, most importantly the  parameter to control the edge caches (Varnish) and   to control client-side caching. This will have to be re-implemented in the service itself.
 * edge cache purging: Services that make use of the edge caches with a large  value may be relying on RESTBase to actively purge cached data from the caches. This will have to be re-implemented in the service by emitting an   event through EventGate.
 * persistence: TBD
 * pre-generation: TBD