added ping command

-added automatic reconnecting on connection loss
-fixed the -update command
-added quit reasons for -update and -shutdown
-added the ability to change settings in the settings file trough
commands