Optimal Transport in Mechanism Design, Differential Games, and Ensemble Control