Implement initial support for XDG 2

* change getFontForgeUserDir to return NULL on failure
* add comments to document new functions getUserHomeDir, smprintf, and
  getFontForgeUserDir