Fry the onions and garlic until limp. Add remaining ingredients except cilantro and cook gently, 15 minutes. Add cilantro and cook 1-2 minutes more. Serve hot or cold.