Crowds of Gazans chanted and embraced on Wednesday as news spread that a ceasefire and hostage release deal had been reached between Israel and Hamas aimed at ending more than 15 months of war in the Palestinian territory.