Add onResourceError handler.
Add onResourceTimeout handler.
Merge branch 'add-error-handlers'