Remove settingsDialog.xrc

Remove the slow XML file and create the SettingsDialog through python code.

* Polished a bit.
* Fixed the close button problem.