UC-2346: ldap import fails due to duplicate IM id

-generate im ids in a form of im.domain_counter if duplicate
-if next attempt fails than we throw the exception
-extended nameInUse exception to hold the duplicate type
-removed unnecesary im id duplicate check from CoreContextImpl.saveUser
-fixed tests