Fix Error issues and other issues found with packaging

Same as https://github.com/bitpay/bitcore/pull/652 but without changing errors
hmmm... why did you remove the `node_modules/gulp/bin/gulp.js browser-all` part? that's used to have the latest browserified version of bitcore when you do `npm install`