Document should not inherit from Node.

A document is not an XML node on itself. If logic has to be shared between the
Document and the Node class I'll resort to using mixins for this.