Remove unused obsolete test code for ImageStore
Update PtiffImageStore to store images in content-addressed filesystem

Also improves thread-safety of sync/import process.
Merge branch 'imagestore'

* imagestore:
  Update PtiffImageStore to store images in content-addressed filesystem
  Remove unused obsolete test code for ImageStore