fixes #3044 reading credentials from settings file

- fixes the credentials issue
- settings are now scoped by a module
- support for reading nested settings