A History of the Khilafah system