Nearly all hostages have been released, but a transition away from Hamas control of Gaza could prove more complicated.