Accept errorHandler callback from clients of app.js

This can be used for anything really. An example usage would be to display
an error message somewhere on the page from the client.

S-48826