Fixed config method to return the config variables

* The config variables are returned as an invisible list.

* tests/config.R: Added test cases

* src/git2r_config.c (config): Refactoring of function