Joe Kahn, the incoming executive editor at The New York Times, is replacing a newspaper legend — while facing challenges to traditional hierarchies from a younger generation of journalists.