Development of settings storage. Also added unit tests.