Put back in debug logging from original hdapm
invert usingBattery so that if we boot with a charger inserted, the APM level gets set to 254

I suspect that OS X starts with an APM level of 128 by default;