added hook for webpage.onResourceError
closes #649 - added resource.error event
Merge pull request #726 from n1k0/resource-error-event

Trigger a "resource-error" event on resource loading failure