Allow the battery level and charger state to be configured in the options. Currently the battery is treated as always being nearly full and unplugged.