config: now with basic test, wow.

also changed signature of config_init (now accepts path to config
as parameter).
added basic check of whether the file is non-negative.