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

          backbone: { exports: 'Backbone', deps: ['underscore', 'jquery'] }

    init: (env)->
      core    = env.core
      sandbox = env.sandbox

      _         = require('underscore')
      Backbone  = require('backbone')
      easyXDM   = require('easyXDM')
