Write temp file, then rename, when writing datastore.
Add raw.decode command.  Fix RPC error exception throwing.