RawFileStore.getFileId (rebased onto develop)



This is the same as gh-1987 but rebased onto develop.

----

This was originally opened as gh-1929 for testing in-place import. The changes themselves, though, are independent of that work. This is a simple API addition that's been needed for sometime, so it should be fine to get in now and build the rest of in-place import on top of it.