Done for the evening. Lots of tests are broken, but I think the changes are good.
Having issues actually rendering something.. and createTextNode() doesn't seem to work like I expect it to.