Battery plugin changes

Separate the battery_pct_remaining data into it's own function so that it can be obtained even if the battery is connected.