Change snapshot to clientside

for go-raft API, i changed in third part. I have already made the change in upstream also.

use a simple policy: check every 3 seconds. if writes since the recent restart exceed writes threshold, snapshot will be executed