Israel and Hamas took steps toward ending the two-year war that has devastated the Gaza Strip, but hard work lies ahead.