Implement document.createProcessingInstruction

Spec:
http://dom.spec.whatwg.org/#dom-document-createprocessinginstruction

This is a sub-task for #1428.
Fixed issues pointed out by Ms2ger