Code cleanups.
Optimized data sending slightly more.
Merge pull request #643 from FullName/nTox-patches

Started as a simple bugfix for wrap(), expanded to more detailed help.
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