Merge pull request #32 from xiangli-cmu/master

gofmt and add func to get the committed index
Merge https://github.com/benbjohnson/go-raft