refactor(settings): add session support

- add json schema validation for settings