JmDNS tuning for quick update of TXT record.
Moving CommonConstants to common.
Refactor for a more functional style.
More on JmDNS tuning.