Integrate builds in openshift origin

Merge of build work into origin repository. Includes API client for origin and k8s.
The purpose of the else is to get access to the masterUrl variable, otherwise it needs to be declared separately