Fixes for oauth and pincode.

SDK now supports the pincode screen, handles refreshing the token more readily, and better stability for switching between accounts.