[MEDIUM] config: split parser and checker in two functions

This is a first step towards support of multiple configuration files.
Now readcfgfile() only reads a file in memory and performs very minimal
parsing. The checks are performed afterwards.
diff --git a/include/common/cfgparse.h b/include/common/cfgparse.h
index 35e5614..3b376a0 100644
--- a/include/common/cfgparse.h
+++ b/include/common/cfgparse.h
@@ -64,6 +64,8 @@
 int readcfgfile(const char *file);
 void cfg_register_keywords(struct cfg_kw_list *kwl);
 void cfg_unregister_keywords(struct cfg_kw_list *kwl);
+void init_default_instance();
+int check_config_validity();
 
 #endif /* _COMMON_CFGPARSE_H */