datasources: Add support for specifying multiple datasources

If multiple sources are specified, the first available source is used.
or more generally, so we have some idea of which datasource was chosen...