Move Parse{Hash|Hex} to be usable by all RPC code
Add RPC call decodescript
Make validateaddress provide redeemScript
Merge pull request #2830 from petertodd/p2sh-rpc

P2SH related RPC improvements
doc/comments
Merge remote-tracking branch 'upstream/master' into dev