Change tox_get_friendlist API.
tox_get_friendlist() -> tox_copy_friendlist().
You now have to allocate your own memory to pass into tox_copy_friendlist.
To help with this, tox_count_friendlist() has been added to get the length
of the friend list.
Merge branch 'patch-9001' of https://github.com/stal888/ProjectTox-Core into stal888-patch-9001
Keep the code consistent.
Removed unused variables.
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core