Hooks up RPC server to raft protocol functions.