Autoconfiguration for cloud hosting environments, OpenShift support

This is wrong because `Config.IP` is sometimes `'0.0.0.0'` which should be replaced with `'localhost'`