Started to apply the lessons from http://jsfiddle.net/DsvX6/7/ to use recursive transclusion.
Fixed the transclusion code so that it works for collapsing subtrees.
Added real testing of the new behavior.