       session: (options) ->
         context.session_store = options.store
         session options
-      bodyParser: bodyParser
-      responseTime: responseTime
-      cookieParser: cookieParser
-      methodOverride: methodOverride
-      directory: serveIndex
 
     use = (name, arg = null) ->
       if zappa_middleware[name]


  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: ->

uglify = require 'uglify-js'
methods = require 'methods'

session = require 'express-session'
serveStatic = require 'serve-static'

vendor = (name) ->
  fs.readFileSync(path.join(__dirname,'..','vendor',name)).toString()
