add integration build to travis
fix integration test
Merge pull request #178 from bitcoinjs/integration-tests

Integration tests
syncscript: general cleanup
Address: consistent json formatting
Address/Script: consistent function ordering
Script: use PubKey objects not prebuilt Buffers
Transaction: rename hashTransactionForSignature to hashForSignature
Transaction: rename (de)serialize to [to/from]Buffer
message: isolate tests to check only tested functionality

The signature verifications here are unnecessary, as this
is not what is under test.
ECPubKey: improve tests and extract test data to fixtures

The use of fixtures allows for more behavioural driven tests and simpler
addition of more test cases in future.

However, as ECPubKey is just a wrapper around other strenuously tested
modules, the test data is currently limited to testing a subset of the
total wrapper.

This should probably be done better by using mocked out modules instead.
ECKey: remove *Buffer/*Hex functions

An ECKey is a composition of a private key (D), a public key (Q) and its
compression flag.

These functions gave the impression of serialization of this
composition, when really they only serialized `D`.
They have therefore been removed in favour of always using a sane
serialization format (WIF) that matches the needed behaviour.

If a user needs the previous functionality, simply use `privKey.D.*`
instead of `privKey.*`, as BigInteger supports `*Buffer/*Hex` functions
as expected.
ec: extract THREE constant
ec: use signum() instead of equals(ZERO)
ecdsa: use shamirs trick properly
ecdsa: remove unnecessary function
ecdsa: consistent parameter ordering

The bias towards moving e out of the
funciontoinadfojdfpsoidjfadoifjdspiofjdas jdifjasdifpasdfsadufhasdif
THIS NEEDS TO BE EXPLAINED AND STUFF
ecdsa: prefer to use [r, s] values directly
asn1/ecdsa: add prelimary asn1 tests for regression testing
ecdsa: improve BIP62 'low s value' inline comment