 uglify = require 'uglify-js'
 methods = require 'methods'
 
-bodyParser = require 'body-parser'
-responseTime = require 'response-time'
-cookieParser = require 'cookie-parser'
-methodOverride = require 'method-override'
 session = require 'express-session'
 serveStatic = require 'serve-static'
-serveIndex = require 'serve-index'
 
 vendor = (name) ->
   fs.readFileSync(path.join(__dirname,'..','vendor',name)).toString()


  context.use = ->
    zappa_middleware =
      # Connect `static` middlewate uses fs.stat().
      static: (options) ->
        if typeof options is 'string'
          options = path: options
        options ?= {}
        p = options.path ? path.join(real_root, '/public')
        delete options.path
        serveStatic(p,options)
      zappa: ->

      session: (options) ->
        context.session_store = options.store
        session options

    use = (name, arg = null) ->
      if zappa_middleware[name]
