BVS-515
More cli checkins together with related changes to REST API for debugCounters
BSC-3818 BSC-3817 Send SNMP traps for switch connect and port changes
bvs-515
Merge branch 'master' of github.com:meiyangbigswitch/bigswitchcontroller
Merge remote-tracking branch 'bigswitch/master'
merge conflict
move the trigger to setRole to Master
Merge into master from pull request #3607:
BSC-3818 BSC-3817 Send SNMP traps for switch connect and port changes (https://github.com/bigswitch/bigswitchcontroller/pull/3607)
general cleanup, one bug-fix, better comments and consistent counter names
Small tweaks
Merge remote-tracking branch 'bigswitch/master' into misc
Exception handling tuning for OFChannelHandler

* alwasy log stack trace at debug level (even if we just log the message
  at error)
* don't wrap other exceptions in SwitchStateException. We don't log that
  with stack trace
* IOFSwitch.setDebugCounterService now throws the correct exception
Merge into master from pull request #3633:
mostly cleanup (https://github.com/bigswitch/bigswitchcontroller/pull/3633)
BVS-515
add debug info
Merge into master from pull request #3608:
BVS-515 (https://github.com/bigswitch/bigswitchcontroller/pull/3608)
Changes to rest API in debugEvents to prepare for CLI
[BVS-486] getPortType will default to UPLINK ports for BigSwitchOVS.  The autoportfast detection is performed only in BSNOVS and Xenon switches.
Remove unused methods.