Battery management and monitoring system architecture