Pasta with Beans, Tomatoes, and Herbs