nTox.c:
- multiple places: tox_getname() doesn't terminate the string, make sure nTox does
- format_message():
.  - renamed to print_formatted_message()
.  - changed semantics: does the new_line() itself, saves caller from freeing the buffer (which no caller did)
.  - changed signature: now also prints the friend's name when sending
.  - intern: date is only printed once, the message line gets only time
- print_message(): enforce null termination
- main():
.  - setlocale() to init locale (for date/time printing)
.  - own name: ensure null termination

Messenger.c:
- notify of friend name change *before* the old name is overwritten
Merge remote-tracking branch 'upstream/master' into nTox-patches
Fixed possible segfault.
Undo faulty newlines, undo extra newlines.
Group chat: Add a nickname message. Remove strange default nickname. (Seriously...)

group_chats.*:
- group_send_nick() to send own name
- setnick() to store a received name

Messenger.c:
- group_send_nick() before group_sendmessage() (in regular intervals, to inform new peers)

nTox.c:
- print_groupmessage(): on error or on a name of length zero the result of tox_group_peername() isn't null-terminated, catch that
Merge pull request #645 from FullName/nTox-patches

nTox: enforce friend name null termination, reduce memory loss, allow nickchange as oldname=>newname
Merge branch 'group_peername' of https://github.com/FullName/ProjectTox-Core into FullName-group_peername
Cleaned up the code.
Add a "conversation mode", where you set your conversation partner once and then all non-commands are sent as message to them.
/cf # rsp. /cg # sets, /cr resets target

Also reformatted display of sent group message slightly to look less beta-ish.
Then using "#<num>" for group number vs. "<num>" for friend/peer numbers.
Also changed to a slightly different message on people without name.
IPv6 address of ::1 is local.
On replacing a client with another, clear the stale association.
Also check both associations for timeout, not just the incoming one.

Also removed client_in_list(): static & unused.
Merge pull request #647 from FullName/ntox-conversations

Add a "conversation mode", where you set your conversation partner once ...
Merge pull request #648 from FullName/LAN_ip-ip6-loopback-is-local

IPv6 address of ::1 is local.
Merge pull request #649 from FullName/DHT-client_id-change-wipe-other-address

On replacing a client with another, clear the stale association.
Merge pull request #4 from irungentoo/master

actual 11.13