Consumer-facing companies are at a loss. The middle class, long the bread and butter of consumer companies of all kinds, is shrinking as a percentage of the population in mature markets. And in emerging markets, where many consumer companies have been laying their bets for the future, growth has started to slow.