The Caliphate at War: Ideology, War Fighting and State-Formation