Refactored caching and security. Caching now supports multiple providers and no longer abstracts away ObjectCache.