Just a few years ago, early adopters of e-cigarettes got their fix by clumsily screwing together a small battery and a plastic cartridge containing cotton soaked with nicotine. Now, the battery-powered contraptions have computer chips to regulate puffs and temperature, track usage, talk to other electronic devices and even blink when “vapers” are near each other.