Added refresh tokens support

I have added support for using refresh tokens. I also updated the iOS sample to include a test to get a new id with a refresh token. Note: I only was able to add this support for iOS since I do not have an Android subscription.