Towards Swarm Calculus: Urn Models of Collective Decisions and Universal Properties of Swarm Performance