After months of deadlock, Israel and Hamas appear to be moving closer toward a ceasefire to end their 14-month war.