package: add npm test target
package: sort
tests: switch to for(it( style
bs58: use Buffers for internal calculation

Ported from bitcoinjs-lib, uses BigInteger precomputation as well.
bump version to 1.1.0