Classical and multi-marginal optimal transport, with applications