Fix linebreak in logged in message.
Check for undefined and null after regex matching.
Change api command name from newlogin to login.
Extract function to build user list, add logout parsing, add color highlighting.