           _h[k] = window.Hull[k]
         window.Hull = _h
 
-      cb(window.Hull) if cb
-
   if window.opener && window.opener.Hull
     try
       window.opener.Hull.emit("hull.authComplete")

define ['aura/aura', 'lib/hullbase', 'underscore'], (Aura, HullDef, _) ->

  hull = null

  myApp = (cb)->
    name: 'Hull'
    initialize: (app)->
      app.core.mediator.setMaxListeners(100)

    config.namespace = "hull"
    hull.app = Aura(config)
    initProcess = hull.app
        .use(myApp())
        .use('aura-extensions/aura-handlebars')
        .use('aura-extensions/aura-backbone')
        .use('aura-extensions/hull-utils')
