Implement Node::replaceChild()

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

This patch is for:
https://github.com/mozilla/servo/issues/1430