Implement initial support for XDG 2

* change getFontForgeUserDir to return NULL on failure
* add comments to document new functions getUserHomeDir, smprintf, and
  getFontForgeUserDir
Merge pull request #992 from holomorph/xdg_base_dir_spec

Document initial support for XDG