A few more SIGHASH fixes -- fixed refs

Fixed this so it's actually based on the correct references. 

corrects the constant for SIGHASH_ANYONECANPAY and adds support for
hashcode in the sign function for standard payments