Commonalize the cache config and change default to disable cache

This change is such that cache dependencies can be declared in a common dependency file. Historicals and brokers optionally configure whether or not they want to enable the cache.