A scalable, open source battery management system