Use app config instead of env vars

Switch to using app configuration instead of user env vars for
OPENSHIFT_DEPLOYMENT_TYPE because we're now laying down
~/.env/OPENSHIFT_DEPLOYMENT_TYPE for all gears when they're created.
Update server.js template to instanciate with new syntax

This removes the following warning on express server startup

Warning: express.createServer() is deprecated, express
applications no longer inherit from http.Server,
please use:

  var express = require("express");
  var app = express();
Merge pull request #4306 from ncdc/deploy-extended-tests-use-app-config

Merged by openshift-bot
Bug 1017536 - Duplication warning messages when creating scalable app with empty git repo
Merge pull request #4309 from motowilliams/update-nodejs-serverjs-template

Merged by openshift-bot
Merge pull request #4310 from jhadvig/dup_message

Merged by openshift-bot