Implement document_from_node and window_from_node helpers.(fixes #1761)
auto merge of #1789 : lpy/servo/issue1761, r=jdm

see #1761