Added an interface (to be able to unit test or replace with another back end later).
Bugfix: dictionary was not initialized if no config file existed (my bad).