Consensus-Based Learning for MAS: Definition, Implementation and Integration in IVEs