Declare all events in `/lib/Events.js`, similarly to how we do it in Puppeteer.
This patch refactors Puppeteer-Firefox code to declare public API in `/lib/api.js` and use it to setup async stack hooks over the public API method calls.