Implemented Node:appendChild

Hi Craig,
I re-implemented appendChild along your lines of thinking.
The implementation is much simpler. :-)
Please review and pull if deemed better.
The [pre-insertion validity](https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity) checks seem to be missing from here.