Add support for advanced config values/multiple selections in settings

In reference to https://github.com/lad1337/XDM/pull/149, this time against the develop branch: