This 100-year-old agreement tells you everything you need to know about the ISIL end game