Factored workspace setup/cleanup operations.
Factored path_within_workspace -> path.c:path_within_dir
Reset results_to_be_sent_msg, otherwise later connections will hang.
Worker creates parent directories before linking input dependencies.