Twitter is using spam-fighting technology to seek out and automatically flag accounts that might be promoting terrorist activity.