API: add a new API for servers to be informed of clients' registrations and deregistrations.