The Four Principles of Collective Intelligence