Implement DOMImplementation.createDocument

Spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createdocument

Closes #1509.