Attempt to get and create a proper directory for config storage.
Implement proper config directories.
Cleanup and Error fixes

Add several frees that were missing to prevent memory leaks
Replace strcpy with strdup where appropriate
Replace _stat with __stat64 for building on Windows
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into upstream
Merge branch 'upstream'
Merge pull request #397 from leeroy2098/merge

Implement proper configuration directories for toxic