Card origin_node_39 - Have Watchman attempt honor state of gear

* Improve Watchman plugin contract
* Add protection for flapping
* Update tests
Fix output from decode_connections

Strip off "|$app_uuid|$gear_uuid" from the end of all types of
connections (including TOHTTPS etc), not just from connections without
modifiers.
Bug 1067031 - Do not include old versions of carts in latest carts just because they have a unique software version
Merge pull request #4804 from danmcp/dev/bug1067031

Merged by openshift-bot
Merge pull request #4798 from ncdc/master

Merged by openshift-bot
Bug 1067345 - Make *all commands honor stop_lock

* The *restartall commands didn't honor stop_lock originally to
    support Online Ops usage. They no longer require the specialized
    behavior.
* Refactor to efficiently use ApplicationContainer
Adding Trello
Merge pull request #4776 from jwhonce/origin_node_39

Merged by openshift-bot
Merge pull request #4807 from jwhonce/bug/1067345

Merged by openshift-bot
Cleaning up comments
Merge pull request #4808 from danmcp/master

Merged by openshift-bot