refactored loading of JSON settings into CJSONSettings, and derived CClientsManager and CPortConnector from it