Make the cloudi module use the cloudi_service module interface if a Dispatcher pid is provided instead of a Context record (to provide a way of making a flexible interface for both services and non-service Erlang pids). Convert all the internal services to use the cloudi module for external interface functions.