make connection more robust
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.
a little overkill
Merge pull request #438 from mkfifo/master

Messenger refactor - redid work from pull request 79
Implemented Deadline Timer and timer_test
Added support for userdata in callbacks
Added LAN discovery timer
Messenger Timer
remember to call timer_poll
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
Merge remote-tracking branch 'upstream/master' into timer

Conflicts:
	core/Messenger.c
Resolve Merge Conflict
minor improvements and bug fixes
put a bunch of repeated code into a function and added timestamps to status/nick changes
Update README.md

Linked to wiki instead of dead pages.
auto-connect errors verbose
unresolved addresses fail silently
toxic: Fix get_user_config_dir().
core: Fix a possible buffer overflow using getself_name().

If the passed buffer is smaller than MAX_NAME_LENGTH then, you
will probably overflow it.