Adding Cache library

Preparation for major restructure of page rendering process by
implementing caching features.