function handleAction(apiPath, data) {
  if (N.wire.has(apiPath)) {
    N.wire.emit(apiPath, data)
      .catch(err => N.wire.emit('error', err));
  } else {
    N.logger.error('Unknown client Wire channel: %s', apiPath);
  }
}
Assigns handlers/listeners for `[data-action]` links.

 Actions associated with a link will be invoked via Wire with the jQuery
 event object as an argument.