Implement saving and restoring of window geometry

Window geometry settings are now stored in the user settings file.

Closes #27.