New orphan DOM elements should have an $ownerDocument

Summary: Changes the way that new DOM elements are created via the create* methods so
that they report the document they were created through as the owner.

Fixes #4126
Fixes #2962

Reviewed By: @JoelMarcey

Differential Revision: D1660705

Signature: t1:1660705:1415202503:508c9d9850ecff29e714a9e662b1bdf8a35ea3bf