Make tfXMLDocument inherit from tfXMLNode

PugiXML treats the document as a subclass of a node. This commit does
the same to our interface, so that we can access the document root node
via the document class directly.