Create or update a service

Inserts or replaces a Service by ID or name. If a Service with the given identifier exists it is replaced; otherwise it is created.