fix typos on pt-br translation
Clarify that only 1 bit in flags is used/known

log_write() currently writes only 1 bit, indicating authorship.
This commit makes it explicit, that only that bit is understood
by log_read().
Split MESSAGE->flags field into author and msg_type

Previously it consisted of authorship bit in the
lowest position, followed by a couple of bits indicating
one of 4 message types (text, action, image, file).

This led to more magic numbers, bit twiddling,
and arithmetic hacks, than is reasonable by any measure.

Since MESSAGE struct doesn't seem to be
format-restricted (e.g. on-disk format), this field
is removed and replaced with two straightforward ones,
and the 4 types are properly encoded as an enum.

Additionally TOX_FILE_OUT_PAUSE & Co. are now referred
directly instead of arithmetically too.

The end result is cleaner code and some comparison/signedness
warnings fixed.
Add another minor comment to MSG_DATA
Separate common fields in message structs visually
Fix whitespace in messages.c
Fix couple of warnings
Merge branch 'demystify-message-flags' 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.
Merge branch 'patch-1' of https://github.com/9192/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.
Merge branch 'trivial-fix' of https://github.com/Ansa89/uTox
Extract LOG_FILE_MSG_HEADER struct
Rid of magic offsets in log_read()
Don't read whole file into memory in log_read()
Merge branch 'master' into debian/unstable
prepare for release

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>
Merge branch 'albel727-better-log-read'

#
# 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.
Merge branch 'master' into debian/unstable
prepare for release

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>
uTox should now display the correct number of peers in the group chat.
Fixed uTox crash introduced in last commit.