add uncaught exception event handler
add error handlers array and event listeners

the array of error handler functions are looped over and invoked with the
uncaught exception or user trigger error event error.
add function for adding error handlers
rename addErrorHandler to error
Merge pull request #557 from tombell/vthree-rethink-error-handling

v3: Uncaught Exception Handling