Whoever governs Gaza after Israel ends its military operations in the Palestinian enclave will have to address what gave rise to Hamas and its extremist ideology.