divorce XML literal to hostnamed.h, update types to be glib-appropriate, comments