Fix braces and a few whitespaces
Update DHT.c
Update DHT.c
Merge pull request #111 from nfkd/patch-3

Fix braces and a few whitespaces
Merge pull request #115 from Astonex/master

Close the socket in shutdown_networking()
A *lot* of style changes.
Merge branch 'master' of https://github.com/KostyaKow/ProjectTox-Core into KostyaKow-master

Conflicts:
	core/DHT.c
Ran the code through: astyle --style=linux
Fixed small astyle problems.
created new files misc_tools.(c|h) and moved hex_string_to_bin() there.
[fixed]created new files misc_tools.(c|h) and moved hex_string_to_bin() there.
Fixing broken commit
Merge pull request #117 from KostyaKow/master

created new files misc_tools.(c|h) and moved hex_string_to_bin() there.
styling
Merge pull request #118 from nfkd/patch-1

styling
Added friend request accepting to nTox and fixed a bug.

Fixed a bug in Lossless UDP that prevented 2 clients from sometimes
connecting when they connected at the same time to each other.
Fixed name related functions.

They now should give proper lengths and take length into account when
sending.
nTox now tells you if it could not send the message.