GSoC 2014 Week1: small improvements

This is a first batch of patches that improve small pieces of Gkeys.

Summary:
1) Fix testpath so it can be used in zsh
2) Create an independent config file management
3) Fix a bug with return types in GKEY namedtuple
4) Remove unused function in gkeyldap
5) Rename some variables and improve some docstrings