Extend bn.js with some convenience methods. Extension code taken from bitcore.
address, base58, base58check, hash all working with tests. base58check code taken from bitcore.