Added number of unclaimed achievements to rewards badge. Fixed bug where isOptedOut would always return true.