   host = null
   port = 3000
   root_function = null
+  disable_io = false
 
   for a in arguments
     switch typeof a

    fs.readFileSync p, 'utf8'

# Takes in a function and builds express/socket.io apps based on the rules contained in it.
zappa.app = (func) ->
  context = {id: uuid(), zappa, express}
  
  context.root = path.dirname(module.parent.filename)

  postrenders = {}
  
  app = context.app = express.createServer()
  io = if disable_io then null else context.io = socketio.listen(app)

  # Reference to the zappa client, the value will be set later.
  client = null
