Added qdom.log_elem, for attaching XML elements to log messages
Moved logic for Arch into distro.py