Addon configuration.

* Replaces #1914.
* Adds basic unit tests for `updateCache` method.
So that you can tailor what is included based on the full addon + app config.