More than 20,000 foreigners have flocked to fight for ISIS, the radical group that controls portions of Iraq and Syria.