Stochastic control, numerical methods, and machine learning in finance and insurance