Noise, stochastic dynamics, and rare-event physics in Josephson devices