var fs   = require('fs'),
    toml = require('toml');

// load the configuration file
exports.init = function(cb) {
    fs.readFile("config.toml", function(err, config) {
        if (err) {
            console.log("Error reading configuration file: " + err);
        } else {
            config = toml.parse(config);

            var new_config = {
                get: function(field) {
                    var obj = config;
                    var prop, props = field.split('.');

                    for (var i = 0, iLen = props.length - 1; i < iLen; i++) {
                        prop = props[i];

                        var candidate = obj[prop];
                        if (candidate !== undefined) {
                            obj = candidate;
                        } else {
                            break;
                        }
                    }
                    return obj[props[i]];
                }
            };

            cb(new_config);
        }
    })
}

@@ -342,16 +342,49 @@
 fig = %7B%0A
+                _config: config,%0A
         
@@ -444,16 +444,22 @@
 r obj = 
+this._
 config;%0A

Store config outside closure so we can modify the config later.