Reworked scripts and classes to avoid using Avahi.