Added versioning to permissions cache
Fixed a few typos in the cache versioning