small refactor on rootScope
fix conflicts
add tests
Merge pull request #738 from matiu/bug/unitname

Bug/unitname
optimize redeemscript map generation
add tests for Structurewq
remove console.log in test
Merge pull request #747 from ryanxcharles/bug/console-log-in-test

remove console.log in test
speed up wallet tests by caching wallet creation
Merge pull request #739 from maraoz/optimize/redeemscriptmap

optimize redeemscript map generation
Merge pull request #748 from ryanxcharles/feature/speed-up-wallet-tests

speed up wallet tests by three times
add preconditions to Structure.js