Dan Carter and Bernard Foley traded opening penalties in a tight opening to the Rugby World Cup Final.