Add script tests with actual signatures

Change the script_valid/script_invalid rules to use actually valid transactions, and add some simple tests with OP_CHECKSIG, and various verification flags.