New bitcoinjs-lib and other changes synced from https://greenaddress.it