Added OAuth refresh and Android webviewclosed fix

These are the changes I discussed with you at Dreamforce when we met.  I have a check for the Android bug where it duplicates the webviewclosed event for some reason. Also this adds refresh tokens.