Implement settings class to save power state on service initialization and restore it on next start

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>