add error handling to simple.js example
fix error emission
add errors.js example
add uncaught to errors.js example
add noop error handler to Writer, let callbacks handle this

you can still listen on it for logging etc, but it should not crash the program
refactor a few debug() messages