Make tx_valid.json/tx_invalid.json validation flags configurable

As discussed with @schildbach and @petertodd on IRC (who were willing to add the same to BitcoinJ and python-bitcoin)

This adds P2SH+STRICTENC to every test case for now. Way overkill, but makes this patch have no semantic impact.