code: function (sessionUrl) {
      console.log('app.js: Getting the remote session.');
      var request = new window.XMLHttpRequest();
  
      request.addEventListener('progress', updateProgress);
      request.addEventListener('load', transferComplete);
      request.addEventListener('error', transferFailed);
      request.addEventListener('abort', transferCanceled);
  
      request.open('GET', sessionUrl, true);
      request.responseType = 'json';
  
      function updateProgress (evt) {
        if (evt.lengthComputable) {
          var percentComplete = evt.loaded / evt.total;
          console.log('progress:', percentComplete);
          app.message({
            text: 'Progress: ' + percentComplete,
            type: 'ok'
          });
        }
      }
  
      function transferComplete (evt) {
        console.log('The transfer is complete.');
        app.message({
          text: 'Remote session was downloaded succesfully.',
          type: 'ok'
        });
        app.loadSessionBlob(request.response);
      }
  
      function transferFailed (evt) {
        console.log('An error occurred while transferring the file.');
        app.message({
          text: 'Remote session download problem.',
          type: 'error'
        });
      }
  
      function transferCanceled (evt) {
        console.log('The transfer has been canceled by the user.');
      }
  
      request.send();
    }
docs: [description]
  @param  {any} sessionUrl [description]