Changes to make the code compile under the 1.5.x version of the Arduino IDE (most recent version). Also changed the config options to default to be proper for the 12kw charger.
Additional refactoring but this breaks the compile right now.