Move the libvirt XML parsing to an Xml module

Signed-off-by: David Scott <dave.scott@eu.citrix.com>