feat(NodePath.prune): add a new method to NodePath `prune`

This method removes a node and its parent if the parent has no other child nodes.

For issue #65 
Cool, makes sense, I'll make that change tomorrow.