Integrate builds in openshift origin

Merge of build work into origin repository. Includes API client for origin and k8s.
Move this up to the top of the file, add godoc.