[IM] refactor code to abstract some functions and clean things up
[IM] support dot1qVlanFdbId/jnxExVlanTag vlan mapping