implement XDG

- passwd used as default resolver again
- implement XDG_CONFIG_DIRS
- fix empty dirs and absolute pathes in envvar
- add new shell based test suite for resolver
default mode is now XDG compatible

+ remember mode as the file had before
put user-config to ~/.config

as recommended by XDG