Mr. Gurney, whose plays included "The Cocktail Hour," "Love Letters" and "The Middle Ages," leavened his astute social analysis with tart humor.