Generalize reconstitution of shared directories to temporary files. Labels files for remapping with nested context and adds ability to import associated files specified in input YAML and reference data files