Fix lack of caching in SettingsManager

Currently the SettingsManager does not cache resolved settings,
so multiple requests for settings of the same namespace lead to redundant queries and processing overhead.
Merge pull request #852 from Richtermeister/fix-settings-cache

Fix lack of caching in SettingsManager