Develop is 3.2.27
Fixed handling of expired credentials

Added regression test
Merge branch 'develop' into cloudy