init code refactorization - global var

we have to somehow save all the config information (app_id, debug, init_callback, queued) into one variable (Branch) so i decided to copy this over when Branch is rewritten?