only use local storage if we have JSON
pz2.js: reintroduce fallback to legacy IE XMLHttpRequest
pz2.js: also pass the request to the error handler

without that, you’d have to rely on »this« to be the pz2 object (to get its »request« property) meaning you couldn’t access the request and your own object’s properties at the same time while error handling