Dynamics of Josephson Junctions and Circuits