Foundations of the Reputation Economy