Add automatic script test generation, and actual checksig tests
update license of compat and crypto

- change license to be just MIT for all files in compat and crypto
- also add missing header end comments
- ensure default header include style
cleanup license and header end comment in chain.cpp/.h
doc: update gpg command line for SHA256SUMS.asc in release process
Merge pull request #4960

8138cbe Add automatic script test generation, and actual checksig tests (Pieter Wuille)
Fix vector out of bounds in script tests
Merge pull request #5003

68af7d0 Fix vector out of bounds in script tests (Pieter Wuille)
Merge pull request #4990

7bec6dd cleanup license and header end comment in chain.cpp/.h (Philip Kaufmann)
0db65d8 update license of compat and crypto (Philip Kaufmann)
depends: update the comparison tool to a more recent version
Revert "travis: retry tests before giving up"

This reverts commit 7e3821c097c05a4790abac53ddd26ef28cb7cf4d.
tests: fix false-positive under win64

BN_ULONG isn't necessarily an unsigned long, as is the case on win64.
Merge pull request #5006 from TheBlueMatt/travis-new-comparisontool

depends: update the comparison tool to a more recent version
Merge pull request #5015 from theuni/win64test

tests: fix false-positive under win64
fix a possible memory leak in CWalletDB::Recover

- convert pdbCopy into a boost::scoped_ptr to ensure memory gets freed
  in all cases (e.g. after "ret > 0")
fix possible memory leaks in CWallet::EncryptWallet

- add missing deletes for pwalletdbEncryption
- add an assert before trying to reserve memory for pwalletdbEncryption
- add a destructor to CWallet, which ensures deletion of
  pwalletdbEncryption on object destruction
change exit(1) to an assert in CWallet::EncryptWallet