Kill EOF whitespace.
Extracted repeated code into a function
Moved some checks around
Changed the way statusmessage is allocated
Introduced data pointer and data_length
Merge pull request #412 from cbrueffer/misc

Kill EOF whitespace.
Returned the length check
Merge pull request #413 from nurupo/master

Cleanup of Messenger.c
Fixed possible bug.
auto-connect to DHT on startup