template cleanup: add utils, remove updateXML, switch to {{URL}}