High order computation of optimal transport, mean field planning, and mean field games