Migrate endpoints during upgrade.

broker code for endpoint upgrade of gears

Fix unit tests.
Keep proxy gears disabled appropriately

Modify enable-server to keep all proxy gears disabled if the ratio of
web to proxy gears is > 2 (previously this only applied to the
local-gear)
Fix bug 1010464: only use supervisor is hot_deploy is enabled
Bug 1003531: An warning message should be thrown out instead of error message when restore a app with postgresql-8.4 (and postgresl-9.2) cartridge
card_169
Fix bug 1030774: domain info overflow
Merge pull request #4202 from bparees/psql_restore_invalid_error

Merged by openshift-bot
Merge pull request #4198 from ncdc/haproxy-keep-proxy-gears-disabled

Merged by openshift-bot
bug 997924: jbossas-7 build fails if the app has mock-plugin addon
Merge pull request #4209 from mrunalp/dev/upgrade_endpoints

Merged by openshift-bot
Merge pull request #4204 from lnader/master

Merged by openshift-bot
Merge pull request #4210 from bparees/mock_error

Merged by openshift-bot
Up tries on http assertions in functional API
Merge pull request #4212 from pmorie/dev/fix-tests

Merged by openshift-bot
Fix viminfo file error when using vim within gears
Bug 1032950

Change ownership of by-id link to gear uid/gid so future deployments
that don't go through mcollective don't fail because of file
permissions issues.
Fix bug 1032888: select ssh url on mousedown
Merge pull request #4215 from jhadvig/vim

Merged by openshift-bot
Merge pull request #4214 from ncdc/bz1032950-lchown-by-id-link

Merged by openshift-bot
Merge pull request #4205 from liggitt/bug_1030774_domain_info_overflow

Merged by openshift-bot