Update server.js

use OPENSHIFT_NODEJS_IP and OPENSHIFT_NODEJS_PORT if OPENSHIFT_INTERNAL_PORT or OPENSHIFT_INTERNAL_IP is unavailable.