Implement insertBefore and reimplement appendChild.
Address review comments and replace add_to_doc with node_removed and node_inserted functions.
auto merge of #1136 : Ms2ger/servo/insertBefore, r=jdm