Adapt createDirectoryStructure() to create files

* Can specify file and contents in main structure passed to replacement fn createfileTree()
Make index function bag

* Rename allFilesAt() to getWorkingCopyPathsFrom() and put it in bag