The story of how Islamic State, a small band of fanatical jihadi fighters, became the world’s richest terror army.