Trigger event on ajax error

My application requires that all ajax errors should be handled in the same way.

Since dynatables 'dies silently' on an ajax error, I added this event trigger.