         model: Model
         sync: sync
 
-
-      collections = {}
 
       setupCollection = (path)->
         collection      = new Collection

        throw new Error('A model must have an identifier...') unless attrs?._id?
        models[attrs._id] || setupModel(attrs, raw || false)

      api.model.clearAll =->
        models = _.pick(models, 'me', 'app', 'org')

      generateModel = (attrs, raw) ->
        _Model = if raw then RawModel else Model

        dfd

      models = {}
      collections = {}

      setupModel = (attrs, raw)->
        model = generateModel(attrs, raw)
        model.on 'change', ->
