Deadly terrorist attacks that almost happened — stopped by surveillance, infiltration, experts and some luck.