+debug = require('debug')('sidebar:controller')
 kd = require 'kd'
 EnvironmentFlux = require 'app/flux/environment'
 remote = require 'app/remote'

          resolve filters



  getState: (selector = identity) ->
    return selector {
      selected: @selected
      leavingId: @leavingId
      invitedId: @invitedId
    }



      stacks: {}
      drafts: {}

    @managed = {}

    @bindNotificationHandlers()
    @setStateFromStorage()
