China has witnessed a spate of deadly incidents in recent months -- from mass stabbings to car rammings -- a rare development for a country with a proud reputation for public security.