Add onResourceError handler.
Add onResourceTimeout handler.
Merge branch 'add-error-handlers'
Merge pull request #99 from Puigcerber/master

Add error handlers for resourceError and resourceTimeout.