Many of the U.S. problems in Afghanistan stem from a misguided relationship with pro-Islamist elements of Pakistani intelligence dating back to the 1980s. But Pakistan’s recent election offers new hope if Official Washington can step back and see the bigger…