Move the remaining RB.apiCall support into utils/apiUtils.js.

This is just a straight move of the functions from datastore.js to
apiUtils.js. No logic has changed. datastore.js is now no more.