As a ceasefire brought calm to Gaza's ruined cities, Hamas was quick to emerge from the rubble.