Hamas has handed over the first three hostages to the Red Cross under a ceasefire deal that has put an end, for now, to 15 months of bitter war in Gaza.