Build intermediate tree

Need to add text structures to tree
Fixing bugs in tree build
Serialize XML

Serializes to XML. Infrastructure to support other serializations.
Fix annotation detection and output
Various fixes

Fix class structure
Fix attribute output
Install test for correct re import
Merge remote-tracking branch 'origin/switch-to-intermediate-tree'