         dfd
 
       models = {}
-
       setupModel = (attrs)->
         if attrs.id
           model = new Model(attrs)

            error:   ->
              dfd.fail(collection)
        collection
        
      api.collection = (path)->
        throw new Error('A model must have an path...') unless path?
        throw new Error('You must specify the provider...') if (path.path && !path.provider)

      api.batch   = batch

      core.data.api = api
      core.track = (eventName, params)->
        api("track/#{eventName}", 'post', params)

      sandbox.track = (eventName, params)->
        core.track(eventName, params)

      initialized = core.data.deferred()

