Fix Error issues and other issues found with packaging

Same as https://github.com/bitpay/bitcore/pull/652 but without changing errors
Because that would need the user to download `gulp`. I think we're OK with not providing a browserified version if the user is downloading through npm (it should be necessary for bower though, as it's more likely that he's going to use it in the browser)