The power grid needs to get smarter. A $280 million project shows how.