Bug fixes for KDB and KNet

- KDB wrote wrong flag in Remove when the key is a internalCollision
key.
- KNet.peer.expectMessage timeout fix
- Added rudimentary congestion avoidance so that block downloading
doesn’t get stuck
- And more minor changes…