Breaking down the costs of making the Nest thermostat that learns your behavior to better manage your home's energy use.