Merge pull request #2791 from sipa/proveprune

Prune provably-unspendable outputs
Move IsPushOnly() to script.cpp
Add stronger IsCanonicalPushOnly(), and use it in IsStandardTx