C0103 fixes 3, dht, k_bucket and routing_table

This PR is dependent on #1108.
Hm, damn. I think I made a mistake rabasing it. Now, it has all those commits that don't belong to this pull request. I'm not sure where I took the wrong turn...