Implementing relevant BitcoinJ tests

I implemented most BitcoinJ tests that are relevant for the pieces we already have.
Many bug fixes are made.
KeyCrypterScryptTest is not yet working.