From Castro to today, Havana has cultivated spies, terrorists, guerrillas, and political allies across the hemisphere.