[IM] Fixing switch and switch port deletion and other improvements

- switchports can be deleted only if they are not assigned to a physical interface
- switches can be deleted only if all its switchports are not in use
- do not allow SNMP polling of inactive switches / non-switch switches