Merge pull request #509 from bhariharan/unstable23

Merge branch 'unstable' into unstable23
Do not hand out RestClient when a logout is in progress
Merge pull request #510 from bhariharan/unstable

Do not hand out RestClient when a logout is in progress
Fix for refresh token error in communities
Merge pull request #511 from bhariharan/master

Fix for refresh token error in communities
Merge branch 'master' into unstable
Merge pull request #512 from bhariharan/unstable

Merge branch 'master' into unstable
Merge branch 'unstable' into unstable23