Add USE=logging for net-libs/tox-9999

It's useful for debugging purposes. Disabled by default.
If enabled, creates libtoxcore.log in working directory.
Merged pull request & cleaned up
net-libs/tox ebuild.