Backend code improvements
After previous refactors improve the backend code logic some more and fix some issues:
- Abstract setting and getting configs to the backend impl class.
- Provide config cause from last changed/updated config.
- Provide config compare functions.
- Fixes for laptop-lid logic.
Edited by Roman Gilg