Implement insertBefore and reimplement appendChild.