Only push to switch if vlan/port allocations changed

Setting a VLAN untagged on a port 1000 times went from 150s execution time down to 30s execution time with these changes, since the switch only needed to be flooded with snmp_gets and not a whole lot of pointless snmp_sets on top of that.