javascript: make utils.ajax() return a promise
javascript: make utils.ajax() return a promise

This allow to use `await ajax(…)`, and still have Rails manage the
request, insert the proper headers and tokens, etc.

sgmap/tps,sgmap/tps,sgmap/tps