Added global error events for node.js and browser. Documented dependency loading for browsers.