remove http dependency from lib/plugin.coffee