lib/Bundle.js
function addHook(loc, method, func){
    var tmp = hooks[loc][method];
    logger.debug("ADdding bundle hook to", loc, method, tmp );
    if(!tmp) return false;
    tmp.push(func);
    return true;
}
function addHook(loc, method, func){
    var tmp = hooks[loc][method];
    logger.debug("ADdding bundle hook to", loc, method, tmp );
    if(!tmp) return false;
    tmp.push(func);
    return true;
}
synchronous hooks