Fix console window show/hide/resize + test cases
Merge pull request #1607 from ellensi/ConsoleWindow

Fix for console window (with test cases)