Cleaning up debug logging and speeding up mdns polling