ported some parts to use bitcoinjs-lib. Included a hacked version of bitcoinjs-lib which exposes getSECCurveByName