Added and modify some features

Added Client Settings Load , save and logout. Added DestroyMain() and
removed settings class.