Add memcache functionality and added calls to functions

This speeds compiling my blog up from 3m44s to 37s. That's pretty
significant savings with a few well-placed memoization calls.

The memcache stuff only kicks in for static rendering.
Merge pull request #27 from willkg/memcache

Add memcache functionality and added calls to functions