make pointers to shell weak
check ptr to shell in platform event handlers
Fix 984: delete shell obj asap in force close case
support passing frame element to Window.showDevToolsJail()