The late-night host looms over the culture to this day, in part because he knew how to mix comedy and sex. But there was a darkness at the heart of his appeal.