With this commit we can pass extra arguments to onResourceRequested function which runs in phantomjs scope. (doesn't support function, also no need to do that)
Merge pull request #229 from msk86/master

Can pass extra arguments to onResourceRequested which runs in phantomjs scope