Fix DOMImplementation should be linked to the Document

This fixes issues 2230.
Merge pull request #2771 from jviereck/fix_2230_link_DOMImplementation_to_document

Link DOMImplementation to the Document; r=Ms2ger