define rules for generating idents for services

define rules and implement function, to make it
convenient to use for generating idents for services
1. ident is generated using four values
cluster name of group of hosts, that provides service
host DNS hostname or any other name
service name of service on the host
instance something, that makes difference between instances of service
(for example listening port)