Langlands Duality In Representation Theory And Gauge Theory