Figuring the central server by environ in the khtool.py too.
Added ip handling also to discovery service, and made it similar as event handling.
Added hardcoded ip to use for cer case.