Improved support for login in the web client (JavaScript).
Improved support for login in the web client (JavaScript).

It now handles error codes and success properly and shows who is logged
in when it is successful.

donno/ardfmap,donno/ardfmap