fix(*): only emit if user is connected
fix(DB#setCJAuthorised): boolean argument

Pass boolean to `DB#setCJAuthorised` instead of accessing
`cj.authorised`, as CJ's `authorised` flag is modified in the callback,
after the database call.
fix(_initRing): add listeners when restoring JP/CJ

Listeners where not re-added when restoring users. Move add-listeners
code to new `Ring#initJP/CJ` functions, so it can be called from the
Tournament module.
fix(_onScoringStateChanged): wrong argument format