core: Use ExternalId in DbUser

This patch changes the DbUser entity and the corresponding DAO to use
the ExternalId class for management of the directory identifier of the
user.

Change-Id: I60ee292f95993c28666bd63bcd153e2416744027
Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>