Stochastic theory of synchronization transitions in extended systems.