object-storage: Refactor and add unit tests for DiskDir

Change-Id: Iafc89a1ce069532cbd07e6ff97071d1bce0a0faa
Signed-off-by: Peter Portante <peter.portante@redhat.com>