China has experienced a spate of violent attacks this year, challenging Beijing's proud reputation for public order and prompting online soul-searching about the state of society