fix(DB#setRingJPId): `jpId` may be `null`
refactor(*): ring-full rejection handled on server

Handle the rejection of a CJ's request to join a ring differently from
the removal of a CJ from a ring. With the former, the CJ is not yet
authorised and sees the authorisation view, whereas in the latter, the
CJ is already authorised and sees the ring view.