Factor out the code that generates server directory paths.
Rework dedup_group and the directory paths so that clients can dedup on
shared blocks. Still need to lock the data files before writing to them.