UN- and Red Cross-backed deal raises hopes for families of the missing as nearly 3,000 detainees are set for exchange.