         path = normalizedArguments[0]
         collections[path] ?= setupCollection.apply(api, normalizedArguments)
         collections[path]
-        
+
 
       api.get     = exec('get')
       api.post    = exec('post')



      collections = {}
      
      setupCollection = (path)->
        collection      = new Collection
        collectionURI   = path
        collection.url  = path
        
        collection.on 'all', ->
          args = slice.call(arguments)
          eventName = ("collection." + collectionURI.replace(/\//g, ".") + '.' + args[0])

      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()

