Set socket family to family of proxy when using proxy.
New congestion control algorithm.

This new congestion control algorithm uses the increase in size
of the send queue to regulate how fast it sends data.

When tweaked it should work better than the old one.
Some thread safety related fixes to TCP connections in net_crypto.

Added a recursive mutex to fix possible thread issues when the A/V
thread sends data at the same time as the main thread.
Removed useless line.
Renamed tox_bootstrap_daemon into tox-bootstrapd
Made init.d script work with systemd
Made possible to run the daemon under its own user
Renamed files for less confusion
Fixed daemon taking long time to stop
Fixed some warnings
Merge branch 'bootstrapd-update' of https://github.com/nurupo/InsertProjectNameHere
Added function to check if we were only connected to LAN DHT peers.
Speeded up onion friend finding.