Four years ago, al-Qaeda appeared to have been destroyed in Iraq. Last week, fighters from the group captured Fallujah, a city where hundreds of Americans were killed or wounded in the last decade fighting the jihadists. How did this stunning reversal of fortune happen?