optimize redeemscript map generation

This changes the way we're generating the redeemScripts. We used to generate all the possible redeemScripts for the max used indices, which is inefficient. This PR chances that to use a list of paths, derived from the utxos used for the tx.
I've ran the tests and all pass.
fixes https://github.com/bitpay/copay/issues/732
This PR doesn't change the need for caching of this map. I don't necessarily think it's a good idea to cache it, but that's not related to this PR