Fix for console window (with test cases)

Reopened the pull request with test case updates.
Sorry for last weekend's break.  I am trying to set up the whole solution to run properly on my home machine.

---

This should resolve the following issues:
- [MAGN-536](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-536) Show Hide Console not working using shortcuts.
- [MAGN-791](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-791) CNTRL Shift UP does not hide console
- [MAGN-2073](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-2073) Show and hide console is broken

Dynamo will load the console window size (and also whether showing or not showing) from the preferences file.