Use new public api
Remove duplicated function resolve_addr
Remove unused global variable
Use tox_ instead of m_ functions
Use tox.h and tox_new for toxcore discovery
Merge pull request #5 from fhahn/new-api

Use new public api