Extract STRING and i18n definitions to separate headers
Move LANG global variable into ui.c
Implement language detection by POSIX locale
Use new language detection in xlib client
Implement language detection by Windows language id
Use new language detection in win32 client
Fix unused parameter warnings for dropmenu callbacks
Added MAX_NUM_FRIENDS define.

TODO: Dynamic arrays so number of friends isn't limited to 256.
Move MSG_FILE to messages.h
Fix MSG_DATA index variables' types and handling

This fixes size disparity between MSG_DATA's
n and istart/iend fields, and related MESSAGES' fields.
Now they all are of new unified type MSG_IDX.

Dirty bit inversion hacks are replaced with explicit
MSG_IDX_MAX constant, used to indicate when an index
variable doesn't contain a sensible value.

All index calculations are now using the new type,
fixing some signedness warnings.
Move friend/group-related stuff to friend.h
Fix types to avoid signedness errors in friend.c
Fix types to avoid signedness errors in ui.c
Fix types to avoid signedness errors in list.c
Fix types to avoid signedness errors in scrollable.c
Fix types to avoid signedness errors in messages.c
Fix types to avoid signedness errors in dns.c
Use TOX_MAX_NAME_LENGTH in tox.c
Introduce MAX_BACKLOG_MESSAGES constant
Merge branch 'better-i18n-take-three' of https://github.com/albel727/uTox

#
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.