     exp.config = @config
     exp.config.name = @getName()
 
+    @setupMiddleware exp
+    @setupParams exp
     @setupRoutes exp
 
     # Error handler

        mu.startDatabase callback
      (callback) ->
        mu.startNetwork callback
    ], (err) ->
      if err
        callback err

    mu = @

    async.waterfall [
      (callback) ->
        mu.stopCustom callback
      (callback) ->
        mu.stopNetwork callback
      (callback) ->
