Merge pull request #668 from rnsmith/i648

Add logging to DirectDataLoader and do periodic commits.
Merge pull request #671 from rnsmith/i648

I648
Change store order of objects so referenced objects stored first (faster to load)