Show status of mobile authentication

Enable the client to show messages based on what stage the mobile
authentication is at the moment

1) QR Scanned
2) Profile to be authenticated choosen
3) Waiting for authentication
4) Authenticate

Most changes are in the related milagro-js-lib
diff --git a/browser/js/mpin.js b/browser/js/mpin.js
index acf8429..6993034 100644
--- a/browser/js/mpin.js
+++ b/browser/js/mpin.js
@@ -1115,9 +1115,30 @@
       }
 
       self.successLogin.call(self, accData);
+    }, function (accData) {
+        return self.updateStatus(accData);;
     });
   };
 
+  mpin.prototype.updateStatus = function (statusData) {
+    var statusText;
+
+    switch (statusData.status) {
+      case "wid":
+        statusText = "<span>Code scanned.<br/>Waiting for authentication...</span>";
+        break;
+      case "user":
+        statusText = "<span>Authenticating user:<br/>" + statusData.userId + "</span>";
+        break;
+      case "expired":
+        statusText = "<span>Authentication expired!</span>";
+        break;
+    }
+
+    document.getElementById("mp_qrcode").removeAttribute('title');
+    statusText && (document.getElementById("mp_qrcode").innerHTML = statusText);
+  };
+
   mpin.prototype.renderMobileSetup = function () {
     var callbacks = {}, self = this, qrElem, mobileBtnText = "";
     callbacks.mpin_home = function () {