Fix creation of state dump and journal files.
Add an RPC client implementation for the directory.