The dynamical sine-Gordon model