Implement onBeforeRequest event
Merge pull request #28 from codemix/add-onbeforerequest

Implement onBeforeRequest event