Save and restore the application settings (position and connection information)