Israel and Hamas agree to ceasefire, exchange hostages for prisoners, potentially ending 15-month war in Gaza.