battery plugin: Import code to read metrics from sysfs.