In a small pot over medium heat, brown the onion and garlic in the oil, about 5 minutes. Add the tomato paste and cook for 1 minute, stirring constantly. Add the remaining ingredients. Bring to a boil and simmer for 5 minutes or until the cranberries burst and start to break down. Season with salt and pepper. Let cool.