Google’s “chief happiness officer” shares some of the wisdom that has made the company’s employees more content and productive.