Hierarchical Platform for Monitoring, Managing and Charge Balancing of LiPo Batteries