The ceasefire agreement between Israel and Hamas has halted 15 months of fighting and paved the way for talks on ending the war.