Make node work on OpenShift

OpenShift doesnt' allow the user to listen on 127.0.0.1, but on stock
node the v8 debugger is hard-coded to listen on exactly that address.

Node itself defaults to listening on 0.0.0.0 when the user isn't
explicit about the interface to listen on. This is undesirable on
OpenShift, because it might fail, or the user might squat an IP address
that was reserved for another user.

This is a port of the following patches made to v0.10:

commit + 0cc7b39a3d4ec54de9a3fc96118f656319efeb63
Author: Bert Belder <bertbelder@gmail.com>
Date:   Tue Jun 19 05:02:47 2012 +0200

    Make node work on Openshift

    Dennis Richie would turn over in his grave.

    Conflicts:
        deps/v8/SConstruct
        lib/net.js
        src/node.cc
        wscript

commit + 6c244aa1fb1fe99d144c4e1e1593c5d91ae74fd8
Author: Bert Belder <bertbelder@gmail.com>
Date:   Tue Aug 14 03:46:40 2012 +0200

    openshift: listen on internal IP when no IP is specified

    Conflicts:
        lib/net.js

commit + d690a65c5bb1e6896b31b6f9f03e463c2509aa5c
Author: Bert Belder <bertbelder@gmail.com>
Date:   Tue Aug 14 04:11:15 2012 +0200

    Add openshift hacks to gyp build

commit + 3ed8bcc56f1a666f068bdf9fee2eba4657a6681f
Author: C9Developer (redhat-compile-server) <developer@c9.io>
Date:   Thu Jun 13 07:43:45 2013 -0400

    changed OPENSHIFT_INTERNAL_IP to IP