function expandConfiguration(setts, importedPackages) {
            setts = _.extend({}, setts);
            var imports = setts.imports;
            delete setts.imports;
            expandedConfiguration = superExtend(expandedConfiguration, setts);

            if (setts.packages && setts.packages.length > 0) {
                _.each(setts.packages, function(uri) {
                    if (!importedPackages[uri]) {
                        imports.push("/packages/" + uri.replace(/:/g, '/') + "/config.json");
                        importedPackages[uri] = true;
                    }
                });
            }

            if (imports) {
                return Promise.all(imports.map(function(imp) {
                    return configfs.readFile(imp).then(function(text) {
                        var json;
                        try {
                            json = JSON5.parse(text);
                        } catch (e) {
                            console.error("In file", imp, e);
                            return;
                        }
                        resolveRelativePaths(json, imp);
                        return expandConfiguration(json, importedPackages);
                    }, function(err) {
                        console.warn("Error loading", imp, err);
                    });
                }));
            } else {
                return Promise.resolve();
            }
        }
Recursively import "imports" into the `expandedConfiguration` variable