Fix return code inconsistency.
Should return 0 for tox_file_dataremaining since it returns unsigned
Merge pull request #667 from aitjcize/ret-code-inconsistency

Fix return code inconsistency.
Fixed possible issue.
Fix API name consistency.
Fix typo.
Merge pull request #668 from aitjcize/api-name

Fix API name consistency.
Add sodium_init() function to startup.
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
The stuff in do_DHT only need to be run once per second.

Should lower CPU usage by a bit.
Tweaked hole punching a bit.