Using a powerful computer program known as PRISM, the U.S. government has been downloading vast amounts of communications data and mining it for counterterrorism purposes. But these capabilities began more than three decades ago with the controversial PROMIS software, Richard…