Fixed Issue #4 with debug console.

Using frame change notification to detect whether the web inspector is
attached to the main view. Using this to control the window level.
listening to window close events is not necessary anymore
yeah well, it actually kinda is