This is a rather huge patch, which unfortunately cannot be splitted. Instead of using our custom ioops.h library, convert everything to use the GLib main loop.
Moved implementation specific code to their own sources, internal declarations in zeroconf-internal.h.