Almost finished the append-entries RPC.