raft: make snapshot a protobuf type

k