Changed ugly case expressions
Function find_jids_by_nick/2 always returns a list
Changed values of #state.sessions dict from lists of LJIDs to lists of JIDs