Having survived three years of the existential war it began, Hamas shows little sign of total defeat. Now it has new options.