Refactored client/friend helper functions (down to line 274)
Refactored DHT.c down to line 367
Refactored DHT.c down to line 567
Refactored DHT.c down to line 779
Refactored DHT.c down to line 881
Refactored DHT.c down to line 1048 (beginning of NAT)
Refactored DHT.c, all of NAT punching functions (line 1217
Refactored DHT.c from end of NAT punching to EOF
Merge branch 'master' into Jeffail-master

Conflicts:
	core/DHT.c
Merge branch 'master' into Jeffail-master
Merge branch 'master' into Jeffail-master
Re-arranged the code, and added a maxnumfriends counter
Update nTox_win32.c

Changed maxnumfriends to uint32_t
Fixed problems.
Fix bug where memcpy could overrun buffer
Time is better as an unsigned variable.
Merge branch 'Jeffail-master'
Fixed warnings.
Merge branch 'master' of https://github.com/Astonex/ProjectTox-Core into Astonex-master

Conflicts:
	testing/nTox_win32.c
Removed deprecated function.