Separate the battery_pct_remaining data into it's own function so that it can be obtained even if the battery is connected.
Merge pull request #1738 from ronshapiro/master

Battery plugin changes