oo-iptables-port-proxy: Rewrite getaddr

Clean up the getaddr command to use pure Bash with only one fork and
simpler (and hopefully more reliable) parsing.
oo-iptables-port-proxy: getaddr: check ipaddr

Check that ipaddr is not empty in getaddr and report a helpful error
message if it is.

This commit fixes bug 1121200.
Fix frontend system_proxy_delete/system_proxy_set

OpenShift::Runtime::FrontendProxyServer#system_proxy_delete and
OpenShift::Runtime::FrontendProxyServer#system_proxy_set: Return values in
a consistent ordering (stdout, stderr, exit status) irrespective of whether
arguments were passed.

Previously, these methods returned the exit status as the first value
instead of the last if no arguments were provided.

Fix the corresponding test cases to expect the correct ordering.

This commit fixes bug 1121238.
Bug 1122413 - handle server without explicit regions
Allow for 2-leg oauth where there is no token or token_secret
Card origin_node_401 - Fix extended tests

* Refactor gear functional tests
* Refactor upgrade functional tests
Merge pull request #5650 from jwforres/oauth_2_leg

Merged by openshift-bot
Automatic commit of package [openshift-origin-cartridge-postgresql] release [1.27.3-1].
Automatic commit of package [rubygem-openshift-origin-controller] release [1.28.3-1].
Automatic commit of package [rubygem-openshift-origin-console] release [1.28.2-1].
Automatic commit of package [rubygem-openshift-origin-common] release [1.27.3-1].
Automatic commit of package [openshift-origin-node-util] release [1.27.3-1].
Update KVM setup info in VM guide
Merge pull request #5644 from fabianofranz/bugs/1122413

Merged by openshift-bot
Merge pull request #5649 from jwhonce/origin_node_401

Merged by openshift-bot
Merge pull request #5651 from nhr/revise_qcow_command

Merged by openshift-bot
Automatic commit of package [rubygem-openshift-origin-node] release [1.28.3-1].
Automatic commit of package [rubygem-openshift-origin-controller] release [1.28.4-1].
Bug 1121067 - Updated error messages
Bug 1121864 - Cleanup OPENSHIFT_PRIMARY_CARTRIDGE_DIR