Refactor more modules to be shared with cadt
elementtree->xmldom within update-config-xml.js (browser-compatible interface)
Fix lint warnings