[libcontacts] Extract configuration object from cache

Allow the configuration data to be read and updated even if the cache
has not been instantiated.