fromCursor = function (cursor) {
    let [id, index] = JSON.parse(unbase64(cursor));

    return {
      id,
      index
    };
  }
Decode a cursor into its component parts
@param  {String} cursor Base64 encoded cursor
@return {Object}        Object containing ID and index