Fixes #8210 - Adding caching for smart-proxy puppet classes using Stefan Julin's implementation of cache

hmm. I noticed this when I hit '/environments/:environment/classes' when cache dir doesn't exist...