Implement Node.cloneNode

Spec:
http://dom.spec.whatwg.org/#dom-node-clonenode

This is a sub-task for #1655. Closes #1240.