Three captives were transferred to Israel and 183 Palestinian prisoners were released by Israel as celebratory scenes erupted in Gaza and the occupied West Bank.