New York City’s next mayor showed during the campaign that he has a sharp sense of humor. Keeping things light at City Hall could be trickier.