factory-pattern for discovery

and moved avahi-implementation into discoveryAvahi
non-working TCP-server on SocketServer basis