Adding some stuff from the original openshift server.js