Update Script, Wallet modules

See individual commits for descriptions:

Script: add multisig, P2SH helpers. Prefer direct Buffer encoding to bufferput
Wallet: new methods for expanding pubkeyhash->pubkey, storing scripts

Used in txtool.