refactor(server.go) refactor candidate loop
tests(server_test.go) add test for processVoteResponse
Merge pull request #179 from xiangli-cmu/refactor_candidate_loop

refactor(server.go) refactor candidate loop