Refine/OC import code reorganization

Needs testing. This reorganization links import source metadata creation
with loading data from refine. Also defaults to doing it in batches.