Add a config option 'IgnoreLid' for users with broken lid switches
Consider a discharging UPS as "on battery"
Support batteries that report both energy and charge
Use the new threadsafe signal handling support in GLib
- Fix compile with the latest PolicyKit release.
- Only save by default 7 days data to stop the log files becoming huge.
- Do not continue to poll the serial port if there is no Watts Up Pro adaptor.
- Fix the build with new versions of gobject-introspection.
- Resolves#634228