The quotable, luxury-loving, perpetually mysterious mayor took New Yorkers on a wild and unpredictable ride.