Theoretical and practical foundations of large-scale agent-based micro-storage in the smart grid | Synapse