Supporting files from imported trees

This is basically https://github.com/OpenTreeOfLife/opentree/pull/475 with a couple of tiny changes (merge changes master and one direct import) that I added while testing.
I tested on devtree, and will merge to master.