old_contents: /**
   * Module dependencies.
   */
  
  var express = require('express'),
  	mysql = require('mysql'),
  	mssql = require('mssql'),
  	async = require('async'),
  	passport = require('passport'),
  	flash = require('connect-flash');
  
  var port = process.env.PORT || 8080;
  	config = require('./config');
  
  
  /**
   * Module configuration.
   */
  
  var app = express(),
  	webapi = mysql.createConnection(config.mysql),
  	mssql_conn = mssql.connect(config.mssql);
  
  
  /**
   * Route cofiguration.
   */
  
  app.get('/', function (req, res) {
  	res.send('uopwebapi');
  });
  
  
  // Listen for connections.
  app.listen(port, function () {
  	console.log('Listening to port ' + port);
  });
new_contents: /**
   * Module dependencies.
   */
  
  var express = require('express'),
  	mysql = require('mysql'),
  	mssql = require('mssql'),
  	async = require('async'),
  	passport = require('passport'),
  	flash = require('connect-flash');
  
  var port = process.env.PORT || 8080;
  	config = require('./config');
  
  
  /**
   * Module configuration.
   */
  
  var app = express();
  // Setup connection to the databases.
  var webapi = mysql.createConnection(config.mysql),
  	mssql_conn = mssql.connect(config.mssql);
  
  // Set up the express application.
  app.configure(function () {
  	// Log every request to the console.
  	app.use(express.logger('dev'));
  	// Read cookies needed for authentication.
  	app.use(express.cookieParser());
  	// Get information from HTML forms.
  	app.use(express.json());
  	app.use(express.urlencoded());
  	// Set up jade for templating.
  	app.set('view engine', 'jade');
  	// Session secret.
  	app.use(express.session({ secret: 'uopwebapi' }));
  	app.use(passport.initialize());
  	// Use persistent login sessions.
  	app.use(passport.session());
  	// Use connect-flash for flash messages stored in session.
  	app.use(flash());
  });
  
  /**
   * Route cofiguration.
   */
  
  app.get('/', function (req, res) {
  	res.send('uopwebapi');
  });
  
  
  // Listen for connections.
  app.listen(port, function () {
  	console.log('Listening to port ' + port);
  });
subject: Set up the express application.