bitpay/copay — pull request #1234 by yemel (2014-08-29 15:26:02+00:00)
Title: Refactor/blockchain

Mayor refactor on Insight backing service, the main improvements are:
* Replace the Socket angular service and include it on this module.
* Replace the ad hoc request function with the `requests` module (both on brower and node)
* Replace the ad hoc _asyncForEach function with the `async' module
* Use the callback(err, data) practice for all functions
* Offer an endpoint to subscribe to addresses and emit events: `tx`, `block`, `connect` and `disconnect`

We now can reuse the module between several wallets.

Closes #1192