Move libvirt XML generation to separate module.