refactor remove the extra function
refactor add wrapper function
Merge pull request #227 from xiangli-cmu/0.2

refactor remove the extra function
refactor move raft http handlers to peer_server_handlers.go
refactor remove extra function
Merge pull request #228 from xiangli-cmu/0.2

refactor move raft http handlers to peer_server_handlers.go