Mobilization, Repression, and Revolution: Grievances and Opportunities in Contentious Politics