Spaghetti with Caramelized Onions, Tomatoes and Herbs