Save and restore window location and state

Can still be overridden by setting in config file, setting of 0 means
will load windowlocation.

Also try to make Battlelog connection check async, failed horribly.
Oh, and my config editor sucks and is ugly.