loginManager: Return objects instead of multiple booleans
Multiple booleans - both in arguments and return values - are almost always problematic API, because people have to memorize (or more likely look up) the meaning of each position.
Instead, return a JS object so each value has a name attached to it.
This came up in !2344 (merged), and has been done on top of that MR.