Added a new sample to check profile cache, a bug in cache.js and
profileservice.js