French cosmetics giant L'Oreal has opened a "tech incubator" employing two dozen people in San Francisco and elsewhere seeking ways to use big data and algorithms to win the hearts and minds of customers.