The polymathic entertainer has had a lifelong bond with the wittiest—and the most tortured—of writers. And now he’s starring in “The Importance of Being Earnest.”