Work on SNMP traps

Changed the way SNMP traps are handled to make it easier for
expansion. Trap comes in.
attribute, state and some other params in a dict come out