Updated search logic for jbitor/jbitor#3.

This has some hacks that need to be fixed, and doesn't implement
ReadNewPeers(), AnyPeers(), or AllPeers().