Eliminated "possible EventEmitter memory leak detected. 11 listeners added"
Added support for onResourceReceived option
Fixed jshint violations