Replace HA config reads with an explicit settings object (task 4dd8f870)
Extract the storage layer into core/ (bundled in the integration)