Raft: assorted cleanups (golint and go vet)

Mostly comments and non-functional changes, with a few bug fixes for format strings in tests.
`go test` with certain flags (notably -c and -cpuprofile). My emacs setup runs `go test -c` whenever I save a file (via flycheck).