1.fixed bugs in Mac OS X Mavericks. 2.Use new qsettings format. 3. fixed a bug when terminating proxy.py.