cleanup, update to latest bitcoinjs-lib, tests