Create parent directories as needed when creating or copying nested nodes

Recursively creates parent directories as needed when a nested node is created or copied.

Fixes #163 and #34.