Refactored backbone.oauth2.js.