implemented a control service (restart/stop/save config) on the gateway
implemented saving configuration files