Add a PeerGroup.waitForPeersOfVersion API and add unit tests for the waitForPeers* methods.
Refactor TestWithPeerGroup a bit to make it more reusable in apps.
Add some JavaDocs to FakeTxBuilder
Add some convenience methods to Transaction for signing.
PeerGroup: return the peers that match the requested protocol version in waitForPeersOfVersion.
Reformat log messages in DnsDiscovery and add one log message for the success case, to make more clear what's going on.

Also, rename hostNames to dnsSeeds as this name is more speaking for itself, and is used in other places as well.
Correctness fix: compare nBits directly not in BigInteger form as nBits has multiple non-canonical encodings.
Refresh wallet-template checkpoints file.
BuildCheckpoints: compare strings correctly.
Wallet: keep risk dropped txns around in RAM and don't miss them when a Bloom filtered block includes them. Resolves issue 545.
Don't crash if there's no logging handler installed.
Upgrade scrypt library.
Wallet: throw more appropriate exception types during completion.

Resolves issue 560.
Keep opcode in ScriptChunk representation of scripts. The goal is to know how data was pushed and be able to apply malleability rules. All unit-tests pass.
Include PUSHDATA opcode in Script.toString(). Also, smallNums are printed in their decoded form.
Improved consistency and formal correctness of all existing .equals methods to meet IntelliJ's convention.

* added null handling so equals methods return false for null argument
* replaced instanceof with getClass to force strict type equality
* added @Override for equals and hashCode where missing
* minor refactorings in equals methods to simplify and improve consistency
* added missing hashCode for ListMessage based on equals definition

Things that HAVE NOT changed:

* set of attributes used for equality checking
* hashCode calculation (except for added hashCode in ListMessage)
* correlation between equals and hashCode
* no new equals methods added
Fixed type references in javadoc to avoid IntelliJ error reports on rebuild.
Dealt with several compiler notices by verifying and then fixing or suppressing. Reduces compilation output noise.
Renamed proofOfWorkLimit to maxTarget along with get/set and minor refactorings.

* proofOfWorkLimit renamed to maxTarget to get it more inline with commonly used terminology (wiki, etc.)
* some misleading local variables renamed from 'difficulty' to 'target'
Implement ScriptChunk.toString() by extracting relevant parts from Script.toString().