Fix for issue 472
Merge pull request #472 from naxuroqa/master

Build fails when SHARED_TOXCORE flag is set in cmake
moved conf.py to its right place
cleaned up the cmake for building the docs nicer
Some DHT hardening done.

See comments of added functions for details.
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
Merge pull request #477 from naxuroqa/master

moved conf.py to its right place
Passed everything through astyle.
Metadata collection prevention part 2 of ???

Improved friend request sending.

As a side effect friend requests should now be routed less than before.

See added comments for details.
Line breaks removed.