Made a callback for Friend.status change
Attempt to get and create a proper directory for config storage.
Removed superfluous statusmsg

Users can just respecify their status with a message.  This will also encourage users to think about which status is actually appropriate instead of just leaving the status alone.
Updated chat.c to bring /status inline with prompt.c status command
Use ctest to run unit tests
Disable failing test assertion
Run unit tests with travis
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
make friendlist resize dynamically
Moved a define and fixed another.
Merge pull request #393 from Nominate/patch-1

Removed superfluous statusmsg
Merge pull request #394 from Nominate/patch-2

Updated chat.c to bring /status inline with prompt.c status command
Merge pull request #395 from fhahn/ctest

Use ctest to integrate unit tests into cmake build system
Merge pull request #396 from lukechampine/dynamicfriends

make friendlist resize dynamically
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into upstream
Merge branch 'upstream'
Fixed dynamic memory allocation.
Fixed a silly code ordering mistake
Made name consistent with other 'on change' callbacks