Added support for refresh tokens. Android support not added or checked.