As Hong Kong convulses amid weeks of protests, demonstrators and the police have turned identity into a weapon.