The social roots of prosperity and liberty