SHANGHAI — The images and video began to appear on Chinese social networking sites early Monday: buildings with shattered windows, overturned police cars, huge crowds of young people milling about in the dark and riot police in formation.