IS swept through Syria and Iraq in 2014, committing massacres and forcing women and girls into sexual slavery. Supporters travelled from Europe and elsewhere to join its ranks.