Simple Li Ion integrated Charger and balancer
Here is an expensive but simple solution:







simulate this circuit &ndash; Schematic created using CircuitLab

I'll try to tidy up this...

If you don't want to charge from mains, substitute your AC/DC charger with a DC/DC one, but isolated/floating.