auto merge of #1499 : brunoabinader/servo/documenttype-remove-quirks, r=Ms2ger

TSIA. Closes #1498.
Implement Node::replaceChild()

Implements Node:replaceChild() according to spec below:
http://dom.spec.whatwg.org/#concept-node-replace

Closes #1430.