Restore main window size and dock½ state between sessions.

Closes issues #113.