Support for hosting on Openshift (now including environment variable support!)

Hi Edgar, I've updated my previous code so that it should support Heroku as well as OpenShift.
This also includes the recently-added support for setting environment variables on OpenShift apps.