Get the code to save entries to actually work
Get the code to save entries to actually work

We always had code to putEntries directly from javascript, but it didn't work
until right now. In particular, we made the following fixes.

- error callback has signature of `(tx, error)` and not just `error`.
- all the actual work is in an async transaction `function(tx)`, so it needs to
  be wrapped in a promise that is resolved with `Promise.all()` instead of
  returning.
- when the `promiseList` is created by mapping from the `valueList`, the map
  function needs to return the just-created promise
- while resolving the inner-most promises, we can return some success
  information instead of nothing

e-mission/cordova-usercache,shankari/cordova-usercache,e-mission/cordova-usercache,shankari/cordova-usercache