fixed memory leaks in config.c

* Config does not need Repository pointer
    -> No need for cyclic garbage collecter support
* fixed several ref counter issues
* some refactorization

Conflicts:
	src/repository.c