Make Document conform to the ASTNode interface

Remove Document::rootNode method