XDG folder support

XDG folder support has been added. This should close #27.


Please refer to the test protocol, especially to the recap in the end: http://slexy.org/view/s21cUaKX0r