Limit number of known addresses per peer

Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 5823449