Check if function is defined in lua script before call it
Add event handler for DISPID_NEWWINDOW3, DISPID_NAVIGATEERROR, DISPID_QUIT
use lower case for the first character for each lua event handler, e.g. OnTimer -> onTimer
Implement getWindowRect, findButtonInWindow, clickWindow lua API