Fixes to issuer.js for modalless issuer API flow.

Doing this with issuer.js is a bit challenging because we don't want
to modify the prototypes of the client page, so we can't just add an
es5 shim.