We tend to think violent extremism is all about ideology, but we ignore the power of personal loyalties at our peril.