Make Document a Node.
auto merge of #1161 : jdm/servo/docnode, r=metajack

r? @metajack