fix bitcoind.js encrypt/decrypt.
clean up debugging.