Add Node.PathToID method.

Used to set the node's body ID in the default template.