Merge pull request #5 from ryanxcharles/feature/make-cosign-testable

Make cosign testable
fix function scope errors
add inputtxs.get and inputtxs.clear commands
add ability to store redeem and clear redeem script

...necessary for being able to sign p2sh multisig transactions
add ability to validate redeem script

the public keys and nreq ought to be able to reproduce the redeem script.  when
people starting passing file around, they need to be able to validate that the
public keys can correctly reproduce the redeem script.
add ability to sign txs without connecting to bitcoind

...if the user has used the inputtxs.get command, they can sign messages
without needing to connect to bitcoind to get the input transactions.
remove debug comment from some earlier time
remove newlines so that pubkey commands are together

...just like the other command groups, like raw.*
add redeem script sanity check

When collaborating to build a multisig address, the user will want to be
absolutely certain that the p2sh address is correct, because they don't want to
accidentally send bitcoins into obvlivion.  Each user will want to be confident
that their public key is in the redeem script. This is part of that check. The
user can see that their public key is in the list, and this check is making
sure that the redeem script actually contains that public key. Another check
that I will implement shortly is that the user will want to be confident that
they actually have the privatate key corresponding to their public key.
added ability to check which priv keys a user has

It will be imortant for users to be able to confirm that they actually have the
private key corresponding to a public key in the p2sh redeem script. That is
what this commit does. Users can show a list of pubkeys in the db, and show
which pubkeys they have the privkey for. Checks are run both to make sure the
corresponding pubkey is in the user's wallet, AND that the corresponding
private key can actually rederive the public key correctly.
change language from "check" to "validate" for consistency

...other similar commands use the word "validate", so we should use that to be
consistent.
alphabatize command lists
update code for pubkeys.validate to reflect "help"