Addon configuration.

* Replaces #1914.
* Adds basic unit tests for `updateCache` method.
Just to confirm, you want the configuration to be available within the included hook, right?