added raft server and moved code to src