code: function main(args) {
    process.on("uncaughtException", onUncaughtException)
  
    var opts  = getOpts.parse(args).opts
  
    var webServer = http.createServer(onRequest)
  
    utils.log("version: " + utils.VERSION)
    utils.log("server starting")
    webServer.listen(opts.port, function() {
      utils.log("server started on http://localhost:" + opts.port)
    })
  
    var config = {
      httpServer: webServer
    }
  
    var rserver = ragentsServer.createServer(config)
    rserver.start()
  }
docs: ------------------------------------------------------------------------------