First commit of process_datasets: code to replace old trait refactoring functions.
Caller now iterating over subdirs or can call individually. Added support for character value lookup given ID.