custom global xhr request error callback

Deals with #31 

Added a global error callback who enables printing errors to the UI. While this may be not the elegant way to do this it can be the starting point of a discussion. See example in below in comment.