Deal between Israel and Hamas seeks to end 15 months of war.