[Extension] Enabled permission cache in extension process.

Speed up performance by caching the persistent and session permissions
in the extension process.
Merge pull request #1614 from mbbill/cache

[Extension] Enabled permission cache in extension process.