improved bundle error logging

- triggering events when supplied instead of logging to console
- displaying error message right in the browser page
0.1.1 much better bundle error handling