Add API for guest to query login status.

Also fixed a few small problems:
 - Properly reject the promises when the panel connection is not available
 - In login events, return the full data, not only the username