Further work on client handling and service registration.
First part of the API function naming overhaul.