Added basic settings class (from chronicle) and unit tests.