sepearte raft handlers and client handlers to two files and clean up related codes