split raft server logic into separate module
move to util
split config
use infof instead of fmt.Printf
use check util