xdg_basedir

Will also be used to implement #559.

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>