Copy of oauth.js from khan-mobile

Test Plan:
- None