* refactor mdns to reduce code complexity
* unit tests

# File version information:
# $Id$
# $Revision$
# $HeadURL$
# $Date$
