First step of converting userId to JID (not tested much)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>