Paris, New York, Bangkok and Nairobi are on high alert as they bid a weary adieu to a year marred by attacks.