#140 refactor to reuse code from fabric-agent across fabric-openshift and process-fabric