Bug 1104902 - Fix several bugs in OOM Plugin app restarts

Several code paths had not been properly tested in this code, and
various typos and logic errors have been corrected.
Bug 1104902 - Fix unit tests
Automatic commit of package [openshift-origin-cartridge-jenkins-client] release [1.22.3-1].
Automatic commit of package [rubygem-openshift-origin-node] release [1.26.7-1].
Automatic commit of package [openshift-origin-cartridge-php] release [1.26.5-1].
Automatic commit of package [openshift-origin-node-proxy] release [1.24.3-1].
Automatic commit of package [openshift-origin-cartridge-nodejs] release [1.27.3-1].
Merge pull request #5478 from a13m/bz1104902

Merged by openshift-bot