Code that uses openshift and phantomjs to export html to pdf or png.