Added config_t for pretty config parsing

You should put tests for your new class to a separate file (e.g. tests/config.cpp).