Adds persistence of essential raft instance state to disk in demo.

Adds a flag to the demo server to specify the path to a file to store
state to.

Implements a storage mechanism to provide for storing and retrieving
state.