index: Use batch API.
index: Use batch API.

  * Rework the deferred calls to use the batch API.
  * Some jslint fix.

Change-Id: I4da8eb294343e73f7dc981b1afad95cdcf707f33

kernelci/kernelci-frontend,kernelci/kernelci-frontend,kernelci/kernelci-frontend,kernelci/kernelci-frontend