(TK-3) Push service handlers into core

Push the implementation of the service handler functions into
core. This avoids cluttering up the service handlers themselves
and allows validating that the server-id is a keyword.