Merge otus and refresh

This completes the tree-import feature by merging (consolidating) tree and OTUs in the current study Nexson. Also some general refactoring of the curation app to support replacing the study NexSON and refreshing the UI cleanly. See commit messages for details.