Stochastic dynamics and dominant protein folding pathways