Fixed authorization problems with the new revision cache

The revision cache now stores the channel access of the revision.
db.GetRev now checks the access privs of a user getting a cached
revision.