Autoconfiguration for cloud hosting environments, OpenShift support

Changing config style is really messy... I'd rather not.