Removed some unused variables.
Added new getWindows method to WindowManager makes it easier to control the currently opened windows.
Fixed the example plugin so it includes a custom dialog iframe with cross communication.