Autoconfiguration for cloud hosting environments, OpenShift support

No cloud-env in this version.  An alternative to #1284