Implement Document.createElementNS.

#1391 rebased