Cache ECDSA signature verifications.

Remember in each CTransaction instance when all signatures have been
verified.  This helps to speed up mining block creation, see also
https://github.com/namecoin/namecoin/issues/154.

Please double-check the code to ensure that I didn't create a "coin stealing" vulnerability or something.