WASHINGTON - The landmark prisoner swap agreed by Russia, the United States and several of its allies that brought home journalist Evan Gershkovich and former marine Paul Whelan and freed 14 others was more than two years in the making, involving secret talks and complex diplomacy involving Germany, Russia and the U.S., which all had divergent interests.