fix disorder events bug: stale AE takes precedence of AE response
add error return value for server.Serve() function
fix index mis-calculated bug for log replication