From the French Revolution to January 6th, crowds have been heroized and vilified. Now they’re a field of study.