Issue #22: Add setDefaultTtl() to CacheStorage.

This also adds tests for getTtl(). It's not complete in that there's no test for stale-if-header, but that's broken so I'll file that in a different PR with a fix.