[WIP 3/3] lib: add configuration framework.