Split code of services in several files

service_t, service_manager_t, and service_connection_t are placed in different files.