Parse recursively through document tree.

Breaks out main .to_org method into more functional parts, and traverses
all child elements of a node if that node has children.