Stephen Sondheim was ready to quit Broadway. The failure of Merrily We Roll Along, his first real flop in nearly 20 years, left him cold toward creating more art. Until James Lapine showed him one particular painting, which became a topic of conversati…