Save window position, size and maximization state

https://bugzilla.gnome.org/show_bug.cgi?id=707633