 
 module.exports =
 class PackageManager
+  _.extend @prototype, EventEmitter
   loadedPackages: {}
   activePackages: {}
   packageStates: {}

fsUtils = require './fs-utils'
_ = require './underscore-extensions'
Package = require './package'

      return pack if pack = @getLoadedPackage(name)
      pack = Package.load(packagePath, options)
      if pack.metadata.theme
        atom.themes.register(pack)
      else
        @loadedPackages[pack.name] = pack
      pack
