Nest Labs is adding Google’s facial recognition technology to a high-resolution home-security camera, offering a glimpse of a future in which increasingly intelligent, internet-connected computers can see and understand what’s going on in people’s homes.