[ucmdb] Major refactoring and creation of stubs for service use