Israel and Hamas have made progress toward ending the Gaza war by releasing hostages and Palestinian prisoners.