Copied openshiftlibs.py from https://github.com/openshift/django-example.
Added OpenShift configuration.