Made a callback for Friend.status change
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'
Fixed a silly code ordering mistake
Made name consistent with other 'on change' callbacks
Merge pull request #397 from leeroy2098/merge

Implement proper configuration directories for toxic
Merge branch 'master' of https://github.com/nurupo/InsertProjectNameHere into nurupo-master

Conflicts:
	core/Messenger.c
Update nTox_win32.c

Mispelled function name
Merge pull request #398 from Astonex/patch-4

Update nTox_win32.c