B2g dev prepare internal api

@zaach - Can you review this one?

This prepares the internal API for B2G. There is a set of tests that go along with this, but those must be merged once we have updated user.js to have "setIssuer"