add the new methods 'start', 'stop', 'isRunning', 'hostname' and 'setHostname' to DiscoveryService
add the new methods 'start', 'stop' and 'isRunning' to Service
fix memory leaks