Nonlinear Kolmogorov Equations in Infinite Dimensional Spaces: the Backward Stochastic Differential Equations Approach and Applications to Optimal Control