Google’s decision to pay $3.2 billion for Nest Labs, a mostly unknown maker of smart smoke alarms and thermostats, could be the start of a radical shift in the tech industry.