Palestinians in Gaza could soon leave their makeshift camps and tents behind under a ceasefire deal between Israel and Hamas.