Move lantern-controller id dependent constants to client.

Also, make jidToUserid handle all cases that jidToEmail does, in
preparation for removing the latter.