Wrap all of accounts-base/localstorage_token.js in a closure.

This way we don't modify window.userId.
Update history for userId global fix.