what Frigzy said about "simple PWM" doesn't apply to AC/BLDC controllers(inverters).
Sorry, but what is the principal difference (electrically-wise) between brushed and brushless inverter except for the 3-rd half bridge?
As it gets to the charging, there are 2 main problems:
1) You get 240V in the outlet (345V DC). How on Earth are you going to step up that voltage to 420V in order to charge a 400V battery pack using, basically, 3 half-bridges? What to do with 120V (level 1) charging?
2) Since you cannot really regulate the voltage, only the duty cycle of the PWM. You have to skip a part of a sine wave in order to bring voltage down, just like a dimmer switch. The power factor of such system is going to be a disaster, no regulation authority ever would approve that for customer use. There is a reason why there is a switching transformer inside your phone charger and not just a PWM-ing transistor bridge.