Improved window and splitter geometry saving

At the moment window size and splitter position is not always saved. One instance being abnormal application termination. This patch implements saving of window and splitter states when they change.
Why did you move this chunk?

https://github.com/tux3/qTox/commit/f8063fc809a93c362944deaf0cffc46f6ca17fa8