if(!tc){ var tc = {}; }

var app = {
    Y:null,
    name:'beekman-wealth',
    version:0.1
  }
  
  app.initialize = function(Y){
    tc.util.log('app.initialize');
    app.Y = Y;
    app.dom = app.Y.one('body');
    app.setupevents();
  }

  app.setupevents = function(){
    tc.util.log('app.setupevents');
    app.Y.augment(app,app.Y.EventTarget);
  }

  app.handle_environment = function(environment){
    tc.util.log('app.handle_environment');
    var i;
    if(environment.features){
      for(i in environment.features){
        if(tc[environment.features[i].name]){
          app[environment.features[i].name] = tc[environment.features[i].name](app,environment.features[i]);
        }
      }
    }
  }
  
