Simple macro system for xml

Settings can now include a list of (xpath, xml_string) pairs to signify macro expansion.