How did Chasidus survive excommunication? Who really led the movement?

And how did 1772 affect all of Eastern Europe for the next 150 years?