Add P2SH support starting at block height 306000

Please review, test and discuss. A similar pull request was created for the Masterchest library.