Add support for disabling view cache

Check the 'view cache' setting that is received from Express to determine
whether to actually use the cache.

Fixes #9