Added popup windows handling support to core driver and sessions