issue 587 fix

Fixes this: https://code.google.com/p/bitcoinj/issues/detail?id=587

I have disabled connecting to node running on localhost for tests.

Please comment on `PeerGroupTest.preferLocalPeer` if my solution makes sense.