Move to requirejs, change over to using ufoJS/lib/xml/main for XML stuff.