Fixed warnings on Windows
Merge pull request #433 from nurupo/master

Fixed warnings on Windows
Replaced friendstatus with connectionstatus
Merge pull request #434 from nurupo/master

Replaced friendstatus with connectionstatus
Fixed a typo
Fixed a mistake
Merge pull request #435 from nurupo/master

Fixes of my previous pull request
Send our current status and name to friend that just came online.
Our username and status might have changed while our friend was offline.
Merge pull request #436 from Alek900/master

Send our current status and name to friend that just came online.
Messenger refactor - redid work from pull request 79

Moves static state out of Messenger.c and into a Messenger struct
Purely stylistic, no functional changes were made.

This commit also changed all the callers of Messenger as they now have
to pass an instance of the Messenger struct to messenger functions.

Also removed some uses of the 'static' keyword at the beginning of
function definitions when the function was already declared static, as
these caused gcc to whine.
Merge pull request #438 from mkfifo/master

Messenger refactor - redid work from pull request 79
Added support for userdata in callbacks
Merge pull request #437 from JFreegman/master

make connection more robust for toxic
Merge pull request #439 from Alek900/master

Added support for userdata in callbacks
minor improvements and bug fixes