Add a caching feature for filesystem download
The goal is to have a client-requested feature for filesystems/download
that will inspect the already-unpacked archive (if any) for the existence of a cache filename. If this exists the archive will not be fetched and unpacked.
Drive-by fixes of some concurrency bugs and environment issues are also present, since they were found while writing tests for this feature.