Feature/pubkey sync

This refactors the network layer and peer manager,
adds test for the browser using mocha,
adds a gruntfile and a copay bundle
includes bitcore and copay on the browser.

PublicKeyRing syncing have been tested but is not included yet.