refactor(server) cleanup snapshot

https://drone.io/github.com/xiangli-cmu/raft/11