OSNG-30 - added externalId fields to the client to be able to set users externalId, also added corresponding exception if unique constraint is violated, additionally added unit test