Enabling onResouceRequested and onResourceReceived events (Issue #12)