code: function base64url_encode(input) {
  	var buf = new Buffer(input);
      return Base64.encode(buf).replace(/\+/g, '-').replace(/\//g, '_').replace(/\=/g, '');
  }
docs: Encode to Base64url and removing padding (as per salmon spec)