v1.1 release: allow dynamic switching between ScaleDOM and Xerces; various code refactorings